Previous versions of WordPress didn’t really provide a good means to conditionally enqueue stylesheets and JavaScript within a plugin (i.e. only when needed). So most plugin authors enqueued both on every WordPress init/load, even if the plugin wasn’t being used on a given page.
Current versions of WordPress allow for enqueuing later in the flow so you you can, for example, enqueue on your shortcode init/parse.
So you really have only a few options here:
- Use Minify to reduce the file size and in some cases combine files to reduce the number of requests, file I/O, and bandwidth. (Already suggested by @m4t1t0)
- Directly modify the plugins to prevent the enqueue if the plugin is not actually used on a given page.
- Open a support ticket for the appropriate plugin and request the author to update the plugin.
Hopefully other users here might have some suggestions for you.
Related Posts:
- Prevent CSS/JS loading when plugin is not used
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- Best use adding user generated JS/CSS to a theme with a plugin
- Eliminate Render blocking CSS?
- Restricting a Plugin to Only Load its CSS and JS on Selected Pages?
- force enqueue script to be first in order of prominence
- How can I modify what is being output in wp_head, whether by a theme or WordPress in general?
- How can I make content disappear when a user logs in?
- W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]
- prettyPhoto media loading very slowly in Chrome
- How to load plugin after page is loaded – pagespeed issues
- Is there an earlier hook than login_head or login_enqueue_scripts?
- CSS from textarea in options page to frontend what to do
- Can someone please tell me what is wrong with my plugin?
- Redirect to another page using contact form 7? [closed]
- how to prevent all css and javascripts files from loading
- How to execute a plugin on a single page only?
- get specific value of a array | PHP
- Is wp_deregister_script the best way to deal with unneeded plugins in a page?
- CSS/JS files in WordPress
- How do I override all stylesheets and scripts without a plugin
- uncaught TypeError: Cannot read properties of null (reading ‘classList’) custom plugin
- How do I minify a plugins CSS/JS code?
- Custom Plugin scripts from admin working in frontend
- is there a way to preload specific images for desktop users only? (excluding mobile users)
- How to remove Unused CSS From a WordPress Theme?
- Overriding inline !important CSS with Javscript code snippet with media query
- Speeding up WordPress on a Local Network
- How do I override WordPress plugin css [closed]
- Caching of combined CSS and JS fails because of losing MIME types through combining by PHP
- Speed issues because of CSS & JavaScript
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- Possible jquery / library conflict in plugin usage
- contact 7 plugin stops some pages from working properly
- Plugins to generate CSS Sprites? [closed]
- Element works, but not on wordpress site [duplicate]
- Sudden ERR_HTTP2_PROTOCOL_ERROR on every JS and CSS files loads
- opening and closing elementor-widget-container
- How to resolve Multisite Speed issues
- Do deactivated plugins slow down a WordPress site?
- Best way to overide plugin CSS?
- Could the WP script/style loader be used to concatenate and gzip scripts and styles in the front-end?
- How can I use WordPress functions in my stylesheet?
- How to load wp_editor via AJAX
- How to include code only on specific pages?
- Modifying a JS file with data from plugin settings
- How do I cleanly override a plugin’s CSS with a child theme?
- How do I force wp_enqueue_scripts to load at the END of ?
- Why does wp_enqueue_style() in plugin not load stylesheet?
- how to include other plugins css files in a shortcode?
- A better way to override plugin’s JS files?
- Change Page’s Tag Using functions.php File
- Getting a custom Gutenberg component’s state from outside that component
- For performance is it better to build custom functionality into the theme or a plugin
- Multiple plugins vs combined one
- How can I dequeue a Plugin Stylesheet?
- Why my browser keeps loading old version of custom JavaScript files in \divi\js? [closed]
- How to call plugin path in JS?
- Add code into on a per page/post basis
- How do I sanitize a javascript text?
- WordPress tips for speed and performance [closed]
- How do I only load a plugin js on it’s settings pages?
- Using standard backend elements in Plugin
- Using tabs for wordpress plugin
- Do Plugins effect site loading time?
- How can I change my javascript after it has been enqueued? [closed]
- How to load different css file for different pages
- How can a Firebase user registration and login be integrated into a WordPress site?
- How do I make my wordpress page more friendly for mobile viewers?
- What happened to convertEntities?
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- Override CSS settings of plugins
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Create Proper WordPress Ajax Request in JavaScript, NOT jQuery
- Add CSS animation as Preloader to WordPress
- Best way to inject css into admin_head in plugins?
- append stylesheet via shortcode
- wp_enqueue_style in Plugin [duplicate]
- Why is the unrendered widget number `__i__` showing up in the JavaScript but not in the HTML?
- Quote rotator in the sidebar
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- ‘Lazy loading’ list of posts with pagination
- How to Reload the Dashboard After Clicking Update in Quick-Edit?
- Check javascript file Proper way in functions.php
- Styles and Scripts, Selectively enqueue across entire site
- Make the css of the widget overwrite theme css
- How to load plugin before the wordpress jquery?
- How to include admin-ajax when loading external javascript
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- how would I include a js file with tags into wordpress?
- How to use wp-ajax in wp-cron
- Dequeue / Deregister script and replace it with a new plugin
- How can I enqueue a style only when a particular widget is active?
- Add extra parameter in tag using script_loader_tag
- WordPress Plugin Look & Feel
- WordPress shortcodes & performance
- Add CSS class to add-to-cart button, Woocommerce [closed]
- Insert code after tag without using functions.php?
- Google Maps and Yandex Maps doesn’t work correctly
- Changing BIGINT to INT