• Resolved nik3sh

    (@nik3sh)


    Hello, I use a theme where there are multiple elements and each of them has their own css & js files .

    My website uses various elements on different pages , sometimes they are repeated but most of the Times they don’t.

    Now what I plan to do here is that use themes css / js files and create 2 copies

    1 css/js for basic functionality and structure . This I want to get cached and it will be used on all pages .

    2 css/ js for only elements used on the page.

    Reason : after some very thoughtful process , I came to conclusion that my audience come directly on my target page via search engines . Rather them loading all css , I want to get them to load as minimum css/js possible . Since Google rates all pages as different sites , my audience will get a faster page .

Viewing 1 replies (of 1 total)
  • Plugin Author launchinteractive

    (@launchinteractive)

    Hi,

    MMR is designed to be automatic and so specifying the scripts to merge isn’t really possible. MMR was inspired by MinQueue which does allow this but it hasn’t been maintained.

    If your server has HTTP2 enabled then I think you might be better to turn off merging if you are going to have different css/js included on each per page.

Viewing 1 replies (of 1 total)
  • The topic ‘Creating merged css/js selectively’ is closed to new replies.