• Resolved skase98

    (@skase98)


    I’m having some really bad load problems with my site, especially my store pages. I followed instructions to use Coverage to find unused code that is loading and found the number one problem on this page was a Powered Cache JS page. It starts like this:

    /*! This file is auto-generated */
    window.wp = window.wp || {},
    function(t, a) {
    var o = {}

    But apparently over 75% of the code in this auto-generated file is unused. The next file also indicated Powered cache file optimizer and 95% of that one is unused CSS.

    I realize I may be misunderstanding this whole Coverage thing but the page load is pretty awful and I want to do everything I can to improve the painful load time. I appreciate your help!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mustafa Uysal

    (@m_uysl)

    Hi @skase98,

    The problem is not Powered Cache here. …file-optimizer.php serves the JS/CSS requests to optimize (minify/concatenation) for the existing enqueued assets.

    Those “auto-generated” files are much more likely to come from WordPress core js files. The theme and plugins might enqueue them to add your site. (you can check the minified version of scripts under wp-includes/js/…)

    So, basically if you need to fix the “unused” code problem, you need to fix unused assets being added you your site first. But be careful when doing that; removing JS/CSS can have side effects on the functionality that plugins bring to your site.

    I hope this helps!

    Regards,
    Mustafa

    Thread Starter skase98

    (@skase98)

    That is amazing to learn! Thank you so much, Mustafa!

    Plugin Author Mustafa Uysal

    (@m_uysl)

    Happy to help @skase98 ??

    Btw, it seems there are lots of console errors on your site. I’d recommend activating features such as rocket loader (from CF) or changing the js execution method (async/defer in Powered Cache settings) with extra caution to avoid unintended results on your site.

    Cheers,

    Thread Starter skase98

    (@skase98)

    This is amazing. I really appreciate the advice. I am really slow to learn all of this. Thank you for your time!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Console coverage showing 75.3% unused js in Powered Cache load’ is closed to new replies.