[Plugin: Google Syntax Highlighter for WordPress] Dynamic Minification of the JS prior to outputting
-
Hello Peter,
First of all – great plugin. Worked right out of the box for me on WP 2.9.1.Got some suggestions for you… have you considered minification of the Brush JS files before sending out to the browser ?
There’s a php script named minify (https://code.google.com/p/minify/) available on Google Code. It can be used in conjunction with your plugin to dynamically minify all the JS files and output them together as a single file to the browser – thus reducing the HTTP connection cycles making the plugin load much faster.
In it’s current state the plugin (rather the mother Syntax Highlighter code) thoroughly violates rule #1 of the Yahoo High Performance Site guidelines.
SODEVE’s suggestion (https://sodeve.net/using-jquery-to-enhance-google-syntax-highligher-wordpress-plugin/) on dynamically loading the brushes is also good.
Cheers,
m^ehttps://www.ads-software.com/extend/plugins/google-syntax-highlighter/
- The topic ‘[Plugin: Google Syntax Highlighter for WordPress] Dynamic Minification of the JS prior to outputting’ is closed to new replies.