Slow page loading issue with Shortcode Embeds Module
-
I’ve come across an issue and solution with trying to debug a slow page loading issue which may be of help to others, and hopefully Automattic will get around to fixing it.
A client’s site was loading extremely slow on some pages, up to 20 seconds in some cases.
Deactivating the Jetpack plugin resolved the issue, but this wasn’t an option for the client.Anyways, long story short, posts which included an instagram link/embed were causing the issue. These where just plain links, no embed shortcode, so relying on the WordPress built in oEmbed functionality to display the instagram image. The issue was not just on posts, but on category views. For example, her home page (blog post view) had two posts with such embeds, each post having at least 5 or 6 links each, taking up to 20 seconds to load at times.
Turns out it’s the “Shortcode Embeds” module in Jetpack causing the conflict/issue. Deactivating this module resolves the page loading speed issue.
I came across this in github which explains the issue, but since February it doesn’t seem to have been addressed.
Also, Jetpack now turns this module on by default, not sure why, especially since they know it slows down page loading in these cases. I would recommend they keep this module off by default until they figure this out, especially given the poor user experience and difficulty for the average user to figure out.
If you come across this issue yourself, you can turn it off by going to the Jetpack dashboard, scroll to the bottom and click on debug, then find and click the “Access the full list of Jetpack modules…” link, then deactivate the Shortcode Embeds module.
I hope this helps someone else.
- The topic ‘Slow page loading issue with Shortcode Embeds Module’ is closed to new replies.