Forum Moderators: open
To speed up a couple very large JS, I'm considering serving them with PHP, which I already compress (gzip.) This is simple, no additional scripting required and tests fine with IE/8 and FF/3.5.6.
However, the response header for the JS displays "Content-Type: text/html" (I parse all HTML as PHP, settings in php.ini.) My cache-control is the same for JS as it is HTML, so in this respect all is well but I wondering about other problems.
Are there potential usability issues serving JS as "Content-Type: text/html" instead of "Content-Type: X-javascript?"
I have over 200 JS scripts in use and this kinda defeats my labor-economic attitude for the day :)