• Resolved mattgerrish

    (@mattgerrish)


    Hi there,

    Since updating to version 5.4, your plugin has injected 30+ js into my site, which has caused massive performance issues.

    I think it is something to do with widget blocks, which I do not need.

    Please advise ASAP on how to remove, it’s causing our business real damage, and I’m sure will affect many others’ sites.

    Thanks,
    Matt

    These files that are loaded are as follows:

    
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19' id='lodash-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.7' id='regenerator-runtime-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0' id='wp-polyfill-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/autop.min.js?ver=0e55c6c10f6d8a4bd90b2ea903436301' id='wp-autop-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/blob.min.js?ver=4eca38a62df5f0145a5f1a78858581e7' id='wp-blob-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/block-serialization-default-parser.min.js?ver=2fc6dec19af6d4c5e5fec8f6fdc1a10b' id='wp-block-serialization-default-parser-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1' id='react-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/hooks.min.js?ver=a7edae857aab69d69fa10d5aef23a5de' id='wp-hooks-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/deprecated.min.js?ver=932d8bb37da8bbb396a7a3f754345e08' id='wp-deprecated-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/dom.min.js?ver=22e1cba3e717e77490ac4ae45f8ef8ee' id='wp-dom-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1' id='react-dom-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/escape-html.min.js?ver=dcba9e40e8782c7d5883426934834b3e' id='wp-escape-html-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/element.min.js?ver=581bce50da6025b17bd0d62a88f525a0' id='wp-element-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/is-shallow-equal.min.js?ver=9b8d91804cfb3ef5b14e6ef816664072' id='wp-is-shallow-equal-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/i18n.min.js?ver=5f1269854226b4dd90450db411a12b79' id='wp-i18n-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/keycodes.min.js?ver=042c4b19e6cbf332d429dea8aa3bf671' id='wp-keycodes-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/priority-queue.min.js?ver=b2e76fb9887a285b5eff38763f2ac2fc' id='wp-priority-queue-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/compose.min.js?ver=6284a4846a73f9c3e3ff2d7bd0b47be7' id='wp-compose-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/redux-routine.min.js?ver=7f20dbcdb5d5645c977063e356eb95cf' id='wp-redux-routine-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda' id='wp-data-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/html-entities.min.js?ver=26307b6ad1e445fc1a4643f634cb29c6' id='wp-html-entities-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/primitives.min.js?ver=fedf57cf6da174d1eca2875b8b730af3' id='wp-primitives-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/shortcode.min.js?ver=5341d74d6385839c835c81ef7c751c59' id='wp-shortcode-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/blocks.min.js?ver=e2b6602c7ebbe8ce93832ce35d81be1c' id='wp-blocks-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/dom-ready.min.js?ver=71883072590656bf22c74c7b887df3dd' id='wp-dom-ready-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/a11y.min.js?ver=0ac8327cc1c40dcfdf29716affd7ac63' id='wp-a11y-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/vendor/moment.min.js?ver=2.29.1' id='moment-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/date.min.js?ver=061439ac4325ef057b8f9c142c82a823' id='wp-date-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/rich-text.min.js?ver=a4eb1e306ca234461cdecbca651dd8d9' id='wp-rich-text-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/warning.min.js?ver=3e70e9d62208deeee510b84df4dec7f1' id='wp-warning-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/components.min.js?ver=72eccad5b704ebf3e45a24b4da1773fe' id='wp-components-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/keyboard-shortcuts.min.js?ver=d60f79d652998d8dc5f4ddb1f9ae5051' id='wp-keyboard-shortcuts-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/notices.min.js?ver=302487dc7e2cc8ab91ae19a57631973c' id='wp-notices-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/token-list.min.js?ver=91a1487ea5b32c4ea39b7a40c5e90652' id='wp-token-list-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/url.min.js?ver=41088521039aa510728086754722537c' id='wp-url-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/wordcount.min.js?ver=61ab1af9326f4d5fda7ed01990e1be70' id='wp-wordcount-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/block-editor.min.js?ver=390a9f83b606a55e8b523c4d16bdb08c' id='wp-block-editor-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/api-fetch.min.js?ver=134e23b5f88ba06a093f9f92520a98df' id='wp-api-fetch-js'></script>
    <script src='https://www.antiquejewellerycompany.com/wp-includes/js/dist/server-side-render.min.js?ver=2942b2a9b4710a872a0ba1f2776eb170' id='wp-server-side-render-js'></script>
    
    • This topic was modified 3 years, 3 months ago by Yui.
    • This topic was modified 3 years, 3 months ago by mattgerrish.
    • This topic was modified 3 years, 3 months ago by mattgerrish.
    • This topic was modified 3 years, 3 months ago by mattgerrish.
    • This topic was modified 3 years, 3 months ago by Yui. Reason: formatting

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @mattgerrish,

    I think it is something to do with gutenberg blocks.

    That’s exactly it.

    For some reason WordPress is loading all of these files automatically, even if you have the Classic Editor and the Classic Widgets plugins installed on your website (see Gutenberg Github issue for more details). I think this is a WordPress 5.8 thing, don’t recall seeing this happen before (I’ll install version 5.7.x and test again to confirm just out of curiosity).

    Performance is pretty critical to me as well so personally and until the WP team figure out how to lazy load block scripts and styles I have disabled everything Gutenberg using the two mentioned plugins + a slight modification to WordPress Popular Posts to make sure its block isn’t loaded either. I’m not near my PC right now but will share the mod with you here later if you’re interested in trying it out.

    • This reply was modified 3 years, 3 months ago by Hector Cabrera. Reason: Fixed typo
    Plugin Author Hector Cabrera

    (@hcabrera)

    Alright, so this is the mod I was talking about:

    1. Go to Plugins > Plugin Editor and select WordPress Popular Posts.

    2. Click on src > Block > Widget > Widget.php to edit this file.

    3. Replace the contents of the file with this version, then click on Update File to save changes.

    4. Finally, add this code snippet to your theme’s functions.php file:

    /**
     * Disables WPP's Block Editor support.
     */
    add_filter('wpp_block_editor_support', '__return_false');

    I think this is a WordPress 5.8 thing, don’t recall seeing this happen before (I’ll install version 5.7.x and test again to confirm just out of curiosity).

    It happens with WordPress 5.7.2 as well, I just didn’t notice until now. It’s not a WP 5.8 thing as I said before.

    yeah, i got this problem too, my website become slow to load because the injected script loads in header before page loads, but now it’s solved, thx for your answer @hcabrera

    I’m Japanese.
    I don’t speak English, so I use translation software.
    I’m sorry if I’m using strange language.

    I’m troubled with this problem too.
    I dealt with it by using “WP Rollback” to roll back the version of “WordPress Popular Posts”.

    Because I didn’t understand the way to deal with it written here.
    Please let me know.
    Will this fix be included in a future version?

    I would prefer that the problem be fixed by just upgrading without adding or editing any code.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Will this fix be included in a future version?

    Yes, that’s the plan.

    Hi Hector! This baffled me also, I was really suprised seeing 30 scripts loading without any change (except plugin updates) on the page.

    I really appreciate the plugin and the work you do, but I have to ask if you’re able to give a timeline on when this should be updated the proper way, via a plugin update? We’re using this on 10+ sites and hotfixing plugins isn’t something I’m really comfortable with.

    Again, thank you for the great plugin, hopefully you’ll find a way to fix this soon.

    Thread Starter mattgerrish

    (@mattgerrish)

    Hi Héctor,
    Thanks for your response.
    I have reverted to an earlier version of WPP and will look forward to when the issue is fixed on a future release.
    Kind regards,
    Matt

    Plugin Author Hector Cabrera

    (@hcabrera)

    You guys won’t have to wait long, @niklo ?? Please update to version 5.4.1 as soon as possible and if you’re using a caching plugin on your website (eg. WP Super Cache, W3 Total Cache, etc.) please remember to clear the cache so changes are applied immediately to your site.

    Thread Starter mattgerrish

    (@mattgerrish)

    Great, cheers Hector, that seems to work, no more pesky js. All the best, Matt

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Update of plugin adds 30+ javascripts to page’ is closed to new replies.