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
- Best way to overide plugin CSS?
- How do I cleanly override a plugin’s CSS with a child theme?
- Dequeue / Deregister script and replace it with a new plugin
- Layout shop page: resize images and columns
- How to add inline css/js inside a shortcode
- How extend shortcode default values for a plugin?
- Image resizing on home page (product category) [closed]
- Combining multiple javascript and css files
- Localiztion in javascript
- WP-Cufon adding extra space in my paragraphs in Firefox and Chrome
- How do I write into a file (css)
- WordPress performance – W3 Total Cache and memcached/APCu
- how to find and correct plugin query performance issues
- How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]
- Override Plugin Script Fucnction in WordPress
- Child Pages Short Code plug-in and hover capabilities?
- How to hide CSS by default and show on button press
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- Hide a Menu Item on Login
- What are the performance hiccups when building plugins?
- Basics of changing plugin output
- Minimizing scripts & css files that plugins add
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- Moving Jetpack buttons to appear below the first H2 title on all project/post pages [closed]
- How to manipulate the content within wp_head
- Add logo to admin menu in my plugin
- I would like to remove date display on photo preview
- Conditional custom redirect
- Load CSS files in header of Bones theme?
- How to enqueue some javascript source once per page
- JS Plugin not executing the js correctly. Trying to make all internal links scroll smoothly
- Call javascript functions from each page
- Button and Countdown overlapping mobile menu
- Want to create custom design of progress indicator in wpforms
- Javascript fetch on wordpress plugins not working
- Jquery POST Ajax Return null data in wordpress
- How to apply to hide TinyMCE (wp_editor) on button click
- Validating ajax search
- inserting custom css, html and js into the current page as a popup window
- Add style to body based on url
- Ajax Call not Working in Plugin
- i create functions.php in plugin files but add_action (‘wp_head’, ‘function_name’) don’t work
- How to create a custom block in Gutenberg with multiple checkboxes?
- How get horizontal div instead vertical CSS
- Implementing Scrollable Images
- WordPress custom blockquote with black background & white text?
- Javascript inserted from Plugin pointing to wrong location
- How to pass value from WordPress to Javascript
- Customize CSS for “Swipebox ” lightbox
- how to add custom css at top above all css file for specific url
- Facebook Quote Plugin for Blockquote?
- Javascript in plugin not working
- Jetpack Comments Change Placeholder Text
- Plugin and javascript placement
- get_option include in my adsense
- Expanding / Collapsing Modules in WordPress Panel
- How to activate/deactivate menu tab and keep the same id?
- How to display a sitmap horizontally? [closed]
- Refresh server side rendered block in Gutenberg without changing attributes or its content
- Is option_active_plugins actually doing anything useful?
- How to create a “Most Popular” & “Latest” TAB in WordPress
- Implementing onSplit/onMerge in dynamic Gutenberg Custom Blocks
- Dropdown menu only appearing when logged in