Support » Fixing WordPress » JSDelivr CDN slows down the loading of the home page

  • nipait

    (@nipait)


    Hi all,

    I’m a bit worried about asking this questions as I could sound as a “general question” but I don’t know how to figure out the problem and the only fix I’ve found in the forum doesn’t work for me.

    I am testing my home page with https://developers.google.com/speed/pagespeed/insights/ and I get 27 as score for mobile and 75 for desktop.

    The bottle necks looks to be JSDelivr CDN that takes 1.684 ms to be loaded (whereas it takes 300ms in the desktop version) and I don’t know what I could do to remove or adjust this delay.

    Any clue please?

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    >> JSDelivr CDN << Then don’t use it? This is not a core WP thing, so it’s something you’ve enabled via a plugin.

    nipait

    (@nipait)

    That’s the main problem, I don’t know which plugin actually uses it :/

    Is there a way to figure it out without disabling one by one each plugin?

    Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    I’d go the “disabling plugins” route.

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install “Health Check”: https://wordpress.org/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site. You can then use its admin bar menu to turn on/off plugins and themes one at a time.

    See http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/

    nipait

    (@nipait)

    If you can install plugins, install “Health Check”: https://wordpress.org/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site. You can then use its admin bar menu to turn on/off plugins and themes one at a time.

    But if the visitors can’t see the changes how can I test the website with PageSpeed looking for the plugin slowing down the entire loading?

    Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    You can, because that stuff is turned off for you until you either disable troubleshooting or logout. Use the “network” tab in the browser console.

    Learn to use the Chrome Developer Tools or Firefox Developer Tools

    nipait

    (@nipait)

    Ok, got it what you mean.

    But – among the various scripts – what is the name I’m should look for?

    • This reply was modified 3 weeks ago by nipait.
    Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    I have no idea. Look at what gets loaded from where in the console.

    Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    nipait

    (@nipait)

    I’m not using any jsdelibr plugin, that’s the point!

    This is the scripts are loaded:
    https://www.dropbox.com/s/8q7sfzv242da4kh/Capture.PNG?dl=0

    Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    Well, do it the hard way.

    Disable *all plugins* and change the theme to twentytwenty. Re-run your gtmetrix scan. If OK, re-enable the theme. Check gtmetrix again. Then the plugins, one at a time. It’s a grand pain in the butt, but it will let you figure out what’s forcing that CDN to be used.

    nipait

    (@nipait)

    I did as you suggested: disabled all the plugins and then turned on one after the other one.

    I think it is the Instagram plugin.

    Without any plugin I score a 95% both mobile and desktop…but without plugins it doesn’t look the same so I’ll keep each one of those

    • This reply was modified 3 weeks ago by nipait.
    Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    Yeah, as I said, it’s a pain. Good luck.

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.