[wp-hackers] Changing mime type of Javascript

Phillip Lord phillip.lord at newcastle.ac.uk
Wed Apr 4 14:22:30 UTC 2012


I need to change a mime type from "text/javascript" to "text/javascript;
ex4=1". This is to get some javascript working without error in IE9 and
at all in IE8. Unfortunately, the javascript library which requires this
is outside of my control. 

I've wp_enqueue_scripts to add the scripts in the first place. As far as
I can tell Wordpress will not let me fiddle around script tags that are
generated, but I thought I would ask. 

If you have an old version of IE around, you should be able to see the
problem at russet.org.uk/blog. 

Phil


More information about the wp-hackers mailing list