• Resolved xxjergerxx

    (@xxjergerxx)


    We had to disable Java Minify, HTML minify and the combine java file features to prevent all java loaded images, menus and wordpress post images from disappearing. It completely broke the site. Anyone else?

    WordPress 5.5
    Running PHP version: 7.1.33

    ??

    We also noticed that the page load speeds in the last 3 versions have dropped form a 95 mobile/99 desktop score to 75 mobile/90 desktop. Seems like things are going backwards and we may need to restore the use of auto optimizer.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @xxjergerxx

    I’ve checked your site and here is what I’ve found:
    1. You are loading the jQuery twice. From the core and there is an additional jquery script in your theme header.php file. This is not recommended, so please remove the one from your header.
    2. You are lazyloading the jQuery file from the core using the “Async JavaScript” plugin. This is not recommended, because it may cause “jQuery undefined” errors. There are a lot of inline scripts that rely on jQuery to be loaded on the page load.
    3. Our combined script is not lazyloaded, but it also uses jQuery, and when it’s loaded after all other scripts, an error is thrown.

    Here is what you should do in order to use the Combine JS functionality:
    1. Remove the additional jQuery library
    2. Disable jQuery lazyloading or enable “Defer Render-blocking JS” functionality in our plugin.

    Regards,
    Stanimir

    Thread Starter xxjergerxx

    (@xxjergerxx)

    Defer hurts the scoring vs async and causes web browser compatibility issues with their slide show plugin. I can ask/ test.

    I believe it causes it to not load on some mobile devices and safari (defer) or harms the site page speed, I can test it once the developer takes a look.

    Do you guys plan on implementing async?

    • This reply was modified 4 years, 3 months ago by xxjergerxx.
    Thread Starter xxjergerxx

    (@xxjergerxx)

    I disabled async plugin and re-enabled the SG Optimizer features including DEFER, it no longer appears to be breaking the site.

    Are you able to pinpoint which of the three need to be removed in the header?
    <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js”></script&gt;
    <script src=”<?php echo site_url(); ?>/test/wp-content/themes/OutlandsTheme/js/script.js”></script>
    <script src=”<?php echo site_url(); ?>/test/wp-content/themes/OutlandsTheme/js/script_download.js”></script>

    Thread Starter xxjergerxx

    (@xxjergerxx)

    Removing this breaks the slideshow at the top:

    <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js%22%3E</script&gt;

    • This reply was modified 4 years, 3 months ago by xxjergerxx.
    • This reply was modified 4 years, 3 months ago by xxjergerxx.
    Thread Starter xxjergerxx

    (@xxjergerxx)

    I think at this point the plugin is working fine and your case is closed. We will need the developer to retire the slide show then the extra jquery:)

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Generally, that’s the best thing to do. Meanwhile, you can try this so you don’t have broken parts on live sites: https://www.ads-software.com/plugins/enable-jquery-migrate-helper/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Latest plugin breaks our website’ is closed to new replies.