Title: Only load the plugin when needed?
Last modified: August 31, 2016

---

# Only load the plugin when needed?

 *  Resolved [eventorism](https://wordpress.org/support/users/eventorism/)
 * (@eventorism)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/only-load-the-plugin-when-needed/)
 * Is it possible to configure BA slider to only load on pages where the shortcode
   is embedded?
 * In default mode it seems to be loading for every page, even the front page. I
   would love to not have to load it when not needed =D
 * Thanks for a great plugin!
 * //B
 * [https://wordpress.org/plugins/before-after-image-slider-lite/](https://wordpress.org/plugins/before-after-image-slider-lite/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Adrian Mörchen](https://wordpress.org/support/users/adrian2k7/)
 * (@adrian2k7)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/only-load-the-plugin-when-needed/#post-7028569)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/before-after-image-slider-lite_dfd3c5.
   svg)
 * [Before After Image Slider Lite](https://wordpress.org/plugins/before-after-image-slider-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/before-after-image-slider-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/before-after-image-slider-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/before-after-image-slider-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/before-after-image-slider-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/before-after-image-slider-lite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Adrian Mörchen](https://wordpress.org/support/users/adrian2k7/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/only-load-the-plugin-when-needed/#post-7028569)
 * Status: resolved