A webpage is being hosted by apache2, CentOS 6.2.
It Gets HTML, CSS, JS files ok to the client side. But CSS and JS don't render, What can be hapenning? Since they should run 100% on client side...
A webpage is being hosted by apache2, CentOS 6.2.
It Gets HTML, CSS, JS files ok to the client side. But CSS and JS don't render, What can be hapenning? Since they should run 100% on client side...
The mime types are probably wrong.
Check they're serving the content with
Content-type: text/javascript
orContent-type: text/css
. You can check this using the Network tab of Chrome's Inspector or Firebug.You'll need mod_mime, and ensure you have these lines in your
httpd.conf
:That should do it.