[Support request] Inline JS

Home Forums Support [Support request] Inline JS

Home Forums Support Inline JS

  • This topic has 3 replies, 2 voices, and was last updated 3 years ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #553656
    Marcos

    Hi,
    Please, when I run the GTmetrix analysis, I get the following warning:

    The following external resources have small response bodies. Inlining the response in HTML can reduce blocking of page rendering.

    should inline the following small resources:
    ../wp-content/plugins/gp-premium/page-header/functions/js/parallax.min.js
    ../wp-content/plugins/gp-premium/sections/functions/js/parallax.min.js
    ../wp-content/plugins/gridable/public/js/gridable-scripts.js
    ../wp-content/themes/generatepress/js/back-to-top.min.js

    How can i fix it?
    Thank you!

    GeneratePress 2.0.2
    GP Premium 1.6.2
    #553940
    Tom
    Lead Developer
    Lead Developer

    It’s just saying those are small files, so they could technically be inline CSS.

    Doing so will make very little difference (if any), especially with HTTP/2.

    However, you can use a plugin like Autoptimize to merge them all into one file.

    #553986
    Marcos

    Many thanks! I’ll try it.
    Best regards.

    #554187
    Tom
    Lead Developer
    Lead Developer
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.