Enqueue minified css files
-
I have read that if your theme includes both style.css and style.min.css, WordPress will automatically load style.min.css and fall back to style.css if the minified version is missing. I am enqueuing secondary css files using enqueue_scripts and want it to work the same way – load minified file if present and non-minified file as fallback – but can’t figure out how to do it. If I enqueue “style2.css” and “style2.min.css” is present in the same location “style2.css” is still loaded.
If there is a more appropriate forum somebody please let me know!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Enqueue minified css files’ is closed to new replies.