• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

What to do with render-blocking scripts when plugins are call jQuery inline?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › What to do with render-blocking scripts when plugins are call jQuery inline?

This topic is: not resolved

Tagged: jquery, PageSpeed, performance, PSI, render-blocking

  • This topic has 2 replies, 3 voices, and was last updated 3 years, 11 months ago by malton.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 17, 2018 at 1:26 pm #222576
    ColossalYouth
    Member

    I've followed my usual process to speed up a WordPress Genesis build: conservative use of plugins, tidied up the theme where possible, used my favoured W3 Total Cache profile and implemented CloudFront CDN. But I'm still not getting great numbers back from PageSpeed Insights, which we now know is an SEO signal as of July this year.

    The problem stems from not being able to put the jQuery library at the foot of the page because the theme I've customised is using a couple plugins that are calling jQuery inline before the library has loaded. I can't modify the plugins because I'm handing this over to a client who will likely update them at some point, so with that in mind does anyone have a solution that would allow me to stop the jQuery library render-blocking? That's the main factor that's stopping me from getting a decent score on PSI - when I remove the library I'm pushing 95 despite the usual issue with the Maps API and caching etc.

    If anyone has any thoughts it would be much appreciated. I'm sure other people must be frustrated by this as well.

    August 24, 2018 at 7:59 pm #222708
    JiveDig
    Participant

    I haven’t found a good solution to this besides using a different plugin. This has been a frustration for us as well, and our main culprit is Gravity Forms. It’s unbelievable such a powerful and popular plugin would do this without a reasonable solution to disable or enqueue a script the right way.


    Lead developer of Mai Theme

    February 15, 2019 at 3:04 pm #489565
    malton
    Member

    Google PageSpeed gives poor results on The Studiopress site, as well as the two sites I have developed with Genesis.
    None of the StudioPress theme pages I have tested get over 33 on the speed score, (under 49 is slow) based on the lab data analyzed by Lighthouse.
    Is it just plugins or is it the Genesis engine?

    This page: https://www.studiopress.com/features/?_ga=2.175686434.1281125912.1550263348-768896535.1430858346
    Gets 29

    This page: https://my.studiopress.com/themes/academy/#demo-full
    Gets 15!

    Eliminate render-blocking resources
    Resources are blocking the first paint of your page. Consider delivering critical JS/CSS inline and deferring all non-critical JS/styles.

    What is an invested user to do about this?

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble