Javascript Detection

In cases where you would like to change the appearance of page assets in the presence or absence of Javascript support, that is now possible using preset classes. By default, a class of no-js is available. Immediately after page processing, a small script at the top of the template will attempt to change that class to js. Using this, you can then define different styles:

	.no-js #myApp p {display:block;}
	.js #myApp p {display:hidden;}

In that example, assume you have a paragraph of text explaining to users that they need Javascript enabled to use your application. With the styles above, that block of text will be hidden when Javascript support is detected.