14 points · by bradbirdsall · 13y ago · 12 comments
@bradbirdsall - Chrome canary calls out the mime type of swipe.js on the demo site. I don't think the HTML5 spec requires text/javascript though, so that's probably on Chrome.
Github serves pages from 'raw.github.com' with an "X-Content-Type-Options: nosniff" header, which specifically disallows browsers from trying to second-guess MIME types. FWIW, IE has supported this header for years, and Firefox is probably going to be adding it soon as well. So if you're serving your .js files with the wrong content type, they're going to break for more and more users as time goes on.
But in addition it should generally do what users expect. If the dots aren't clickable, why are they there?