Unload stylesheet site-wide and ignore dependency rule
-
Hi,
I’ve been struggling with unloading unused css files for weeks when I came across this plugin. And while it helped me remove almost everything I wanted, a few stylesheets remain which I just can’t find a way to unload.
For example, I’m running the Neve theme and I wanted to unload it’s main stylesheet style-main.min.css because I wrote my own and already enqueued it instead of the original one. But there are some ‘children’ css files depending on this file as your plugin correctly established, so I checked the “ignore dependency rule” to keep these children loaded. But with this checked, the style-main.min.css is still loaded as well.
Here are two screenshots showing my settings and the coverage of the files loaded:
plugin settings
coverage screenshot in Chrome devtoolsApparently I can wither unload the css file and all its dependencies or keep them all loaded by checking the “ignore dependency rule”. Any idea as to what I’m doing wrong?
Note: I’m working in test mode.
Note2: I’m having the same issue with Elementor’s custom-frontend.min.css and frontend-legacy.min.css, which also have dependenciesThanks!
- The topic ‘Unload stylesheet site-wide and ignore dependency rule’ is closed to new replies.