• Resolved urbantreats

    (@urbantreats)


    Hey, first of all love this plugin.

    Problem I am having is that the first time I load the page with this plugin enabled the thumbnails height is stretched to double.

    Only seems to happen on first load.

    Could this be an issue with my CSS loading last?

    Thanks again

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey urbantreats,

    It looks normal for me even on the first page load.

    You could add a bit of JavaScript to the “Custom JavaScript” area on the “Customize” tab to force the images to resize though:

        var resizeEvent = window.document.createEvent('UIEvents');
        resizeEvent .initUIEvent('resize', true, false, window, 0);
        window.dispatchEvent(resizeEvent);

    Let me know if you need more help!

    – Craig

    Thread Starter urbantreats

    (@urbantreats)

    Awesome thanks for your response.

    Ill try it out later and let you know.

    Also this only happens on desktop is fine on mobile.

    Hi,

    I have the same problem on my footer here, but you JS snippet did not reolve it:
    https://entreprises-uzes-pontdugard.fr/
    thanks

    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey pipoulito,

    We could try adding a delay as it looks like the issue is that the height for the images is calculated before your page is done resizing:

    setTimeout(function(){
        var resizeEvent = window.document.createEvent('UIEvents');
        resizeEvent .initUIEvent('resize', true, false, window, 0);
        window.dispatchEvent(resizeEvent);
    }, 750);

    Try this snippet instead.

    – Craig

    hi,

    thanks it has resolved the problem !!

    thanks

    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    No problem!

    Have a great rest of your week.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Stretched thumbnails on first load’ is closed to new replies.