Total Cache adds the minified version, but leaves the original js/css files
-
I’ve got the plugin Prettify GC Syntax Highlighter, and I noticed that the line numbering was getting screwed up when I enable js minification. After some digging I found that the original JavaScript and CSS files are being included as well as the single minified file. I’m not sure if this is a Total Cache bug, but I checked the Highlighter code, and it registers the files using:
wp_enqueue_style(‘prettify-gc-syntax-highlighter’);
wp_enqueue_script(‘prettify-gc-syntax-highlighter’);
wp_enqueue_script(‘prettify-gc-syntax-highlighter-launcher’);Which I believe is correct. Basically Total Cache is creating a minified version and including it, but not calling the
wp_deregister_script()
function on the original files.Am I missing something?
- The topic ‘Total Cache adds the minified version, but leaves the original js/css files’ is closed to new replies.