• Resolved giacomolaw

    (@giacomolaw)


    Hi there, hope all is well,

    As I’m using HTTP/2 I’ve turned off aggregation. Is there any way to grab the inline CSS and JS, and put it in its own separate file, whilst leaving all the other style and script files untouched?

    It made the source look a lot neater, and kept the html length lower.

    If it matters, I am also using WP Rocket on the site for caching.

    Thanks in advance!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    yeah, probably, with some trickery;
    * tick “also aggregate inline CSS” and “also aggregate inline JS” (warning; this might make the cache grow quickly as inline code can change quickly)
    * add wp-content/theme, wp-content/plugins, wp-inludes to the comma separated JS & CSS optimization exclusion lists
    * test (things _might_ break ?? )

    frank

    Thread Starter giacomolaw

    (@giacomolaw)

    Great, thank you very much! Will give it a go when I can ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compiling inline CSS & JS into a file without aggregating?’ is closed to new replies.