Viewing 1 replies (of 1 total)
  • Plugin Author Adrian Mörchen

    (@adrian2k7)

    Hello eventorism,

    This is by intention. Really.

    Personally I think it is better to load all needed scripts/styles at once, as this (theoretically) helps to save bandwidth and improve page loading.

    One of my assumptions is, that you always should use some caching and optimization plugn to generally improve your pages speed (I like WP Fastest Cache).

    Some basic example:

    Page 1: Loads script A + B -> “Combined” A_B
    Page 2: Loads script B + C -> “Combined” B_C

    Always every script: Loads A + B + C -> “Combined A_B_C”.

    I think you get what I mean. When you start loading only the scripts you need you end up sending more data to your user, as on every page a new combined script will be generated.

    Even without any optimization it might not metter (only for your front page maybe). As typically scripts should be cached locally anyway.

    Really try WP Fastest Cache and check the results before and after on webpagetest.org

Viewing 1 replies (of 1 total)

The topic ‘Only load the plugin when needed?’ is closed to new replies.