I want to generate html layout with areas (divs, spans) that can be shown/hidden conditionally. These areas are hidden by default.
If I call .hide() method with jque
I would always use Modernizr.js http://modernizr.com/ to handle this.
With Mondernizr a class 'js' or 'no-js' is added to the HTML tag of your page.
From here you can hide your elements only if the html tag has the js class.
Modernizr is great for so many other applications and worth reading up on if you've not used it before: http://modernizr.com/docs/