• Resolved davenoakes

    (@davenoakes)


    Hi,
    After the latest update we found our header images weren’t loading on our homepage. They still load if we either disable the “Optimise JavaScript Code?” option, or enable it as well as enabling the “Also aggregate inline JS?” option.
    We have chosen the second option, but (as the warning next to the option advises) the cache builds up very quickly, which is OK while we are working on the site, but we found that when we wake up in the morning it’s at 100%.
    Is there anything I can add to “Exclude scripts from Autoptimize:” which will get round this problem? At the moment we are excluding the following scripts…
    seal.js, js/jquery/jquery.js,wp-spamshield,jquery.js,jquery-migrate.min.js, jquery.rpp.js, jquery.rpp-isotope.js
    Thanks in advance for your help

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    @davenoakes can you check what (if any) JS errors are visible on the console when “also aggregate inline JS” is not active?

    frank

    Thread Starter davenoakes

    (@davenoakes)

    Hi Frank,

    Thanks for the response. These are the errors that show up.

    autoptimize_5244dbfba861327019ea71c63c05c270.js:658 Uncaught TypeError: EasyAzonPro_Localize_Links.process is not a function
    at HTMLDocument.<anonymous> (autoptimize_5244dbfba861327019ea71c63c05c270.js:658)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)
    at HTMLDocument.K (jquery.js?ver=1.12.4:2)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, can you try adding EasyAzonPro, easyazon-pro to the JS optimization exclusion list? if it doesn’t work yet, we should at least have another error on the console and can base our next step on that.

    frank

    Thread Starter davenoakes

    (@davenoakes)

    Hi Frank,

    That seems to have done the trick. Thanks very much!

    I’ll let you know if anything else turns up, but for now, everything seems to be working fine.

    Thanks again!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    great! have a nice weekend ??

    Thread Starter davenoakes

    (@davenoakes)

    Hi there,

    I’m afraid I’ve come accross further issues. We use a plugin called Access Press Annonymous Post Pro, which creates a submission form which isn’t loading properly on the following page whilst autoptimize is enabled. https://southeastasiabackpacker.com/about/write/

    These are the error messages in the console

    Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/wpview/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/lists/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/wplink/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/colorpicker/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/media/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/wpdialogs/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/wptextpattern/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/textcolor/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/themes/modern/theme.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/paste/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/wpgallery/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/wpautoresize/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/image/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/tabfocus/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/wordpress/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/fullscreen/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/charmap/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    /wp-content/cache/autoptimize/js/plugins/hr/plugin.js?wp-mce-4607-20171116 Failed to load resource: the server responded with a status of 404 ()
    autoptimize_060aca4fa1b88dad457a10654189a5c1.js:1000 Uncaught TypeError: b is not a constructor
    at n (autoptimize_060aca4fa1b88dad457a10654189a5c1.js:1000)
    at Object.r [as init] (autoptimize_060aca4fa1b88dad457a10654189a5c1.js:1000)
    at q.<anonymous> (autoptimize_060aca4fa1b88dad457a10654189a5c1.js:1000)
    at Array.<anonymous> (autoptimize_060aca4fa1b88dad457a10654189a5c1.js:976)
    at b (autoptimize_060aca4fa1b88dad457a10654189a5c1.js:974)
    at r (autoptimize_060aca4fa1b88dad457a10654189a5c1.js:976)
    at autoptimize_060aca4fa1b88dad457a10654189a5c1.js:976
    at HTMLScriptElement.h (autoptimize_060aca4fa1b88dad457a10654189a5c1.js:976)
    autoptimize_060aca4fa1b88dad457a10654189a5c1.js:995 Uncaught (in promise) TypeError: Cannot read property ‘getNotificationManagerImpl’ of undefined
    at h (autoptimize_060aca4fa1b88dad457a10654189a5c1.js:995)
    at k (autoptimize_060aca4fa1b88dad457a10654189a5c1.js:995)
    at <anonymous>

    Thanks in advance for any help you can offer with this,

    Dave

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, the obvious thing to do would be to exclude all of that plugin’s JS from optimization and disabling “also aggregate inline JS”, but as it uses tinymce (which has a great amount of JS-dependencies), the easier thing to do would be to exclude this page specifically from optimization using a code snippet like this one;

    add_filter('autoptimize_filter_noptimize','backpacker_noptimize',10,0);
    function backpacker_noptimize() {
    	if (strpos($_SERVER['REQUEST_URI'],'about/write/')!==false) {
    		return true;
    	} else {
    		return false;
    	}
    }

    hope this helps,
    frank

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Header images not loading since update’ is closed to new replies.