• Resolved nickpagz

    (@npagazani)


    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • @npagazani

    The issue you linked to was regarding a 0.4 second speed decrement.

    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.

    Since you were seeing an up to 20 second speed decrement on this site and we can’t replicate what you described on our test site, the issue was probably specific to the site’s configuration. Regardless, we’ve mentioned the problem you experienced in the GitHub issue you mentioned.

    If you’d like further assistance with this, you or the client in question can submit a private inquiry here:

    https://jetpack.com/contact-support/

    Please include the address of the site and a link to this thread.

    Thank you!

    Thread Starter nickpagz

    (@npagazani)

    @pmciano, thanks for the fast response and adding it to GitHub.

    Not sure if the speed decrement is cumulative or not with additional instagram embeds.

    I noticed a category page (showing a post image and short summary) with 5 posts would load faster if it had fewer posts with fewer embeds per post. The more posts and more embeds in the posts, the longer it took to load.

    Interestingly, a single post with multiple embeds loaded faster than the category view pages. Now, this may have to do with the way the theme picks the image to load. I know it tries to use the featured image, but if it doesn’t exist, it uses the first image in the post. Perhaps being an embed as the first image may be contributing to the category view issue.

    Anyways, maybe that extra info helps.

    Here’s the site for reference:
    https://mylifeindots.com

    @npagazani

    I noticed a category page (showing a post image and short summary) with 5 posts would load faster if it had fewer posts with fewer embeds per post. The more posts and more embeds in the posts, the longer it took to load.

    Interestingly, a single post with multiple embeds loaded faster than the category view pages.

    Can you forward links to the category page and specific single post you mentioned when you submit your inquiry here?

    The extra information will help us assist you with this.

    Thread Starter nickpagz

    (@npagazani)

    Sure.
    The Interviews category had only one post with embeds, so loaded a bit faster.

    The home page had two posts, 2 and 4, so this page took the longest to load.

    @npagazani

    Thank you.

    We’re not seeing any new issues submitted via the link we previously provided for mylifeindots.com.

    Can you open an inquiry using this form and include a link to this thread?

    https://jetpack.com/contact-support/

    Once you do that, we will be glad to further assist you with this.

    Thread Starter nickpagz

    (@npagazani)

    Yeah, the module is turned off, so the site loads normally now. But sure, I’ll add this into the support form.

    Also, I’ll ask the owner if she’ll allow me to create a staging site where I can turn the module back on and you can test a bit more.

    @npagazani

    Also, I’ll ask the owner if she’ll allow me to create a staging site where I can turn the module back on and you can test a bit more.

    Excellent, and thank you for your patience.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Slow page loading issue with Shortcode Embeds Module’ is closed to new replies.