Quick Disable Javascript / Cache in Chrome

When updating a website, you may sometimes notice that your changes don’t go into effect when you refresh your screen (F5). You also will want to test your site to see how they look with Javacript turned off.

To refresh your page, you can hit F5, but you may not see any changes since content may come from your local cache.

To force your page to be reloaded from the server regardless of your local cache, use Shift + F5.

To turn on/off javacript / local cache in Chrome, see the image below.

IE-Specific CSS / Javascript

As well all know by now, IE (Internet Explorer) is a problematic browser for all web developers. There will come a time when everything just looks great everywhere else (Chrome, Safari, Firefox) but NOT in IE. If you can’t make your CSS, Javascript to work in all browsers including IE, you can add a separate CSS and Javascript file that works only in IE using the following code:

<!–[if IE]>
<link rel=”stylesheet” type=”text/css” href=”/asset/stylesheet/ie.css” />
<![endif]–>

<!–[if IE]>
<script src=”//html5shiv.googlecode.com/svn/trunk/html5.js”></script>
<![endif]–>