Basic rule should be to avoid mixing Javascript and CSS to hide/show
elements in the document (or the complete document).

So hide/show using only Javascript - OR - hide/show using only CSS (if
possible at all).

This eliminates the possibility of a blank page as the result for
users with disabled Javascript.


Diego


On Tue, Dec 20, 2011 at 11:00 AM, Claus Reinke <[email protected]> wrote:
>> And this alternative:
>>
>> <noscript>
>>   <style type="text/css">
>>       body {
>>           visibility: visible;
>>       }
>>   </style>
>> </noscript>
>>
>> ?
>
>
> This seems to be an intended route for HTML5, but may have
> various results in earlier browsers
>
>   [whatwg] <noscript> should be allowed in <head>
>   http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2007-June/011918.html
>
> Thanks also for the blog post links (unfortunately, the term
> FOUC has also been used to refer to browser issues with
> CSS imports, but perhaps those are fixed?).
>
> I've used the learningjquery post in a reddit thread on default
> hiding, and have asked Paul whether he could raise the issue
> discussed in his post with the Google+ team.
>
> There are other JS experts who hide content in a way that can
> only be unlocked via JS or source editing, so the issue and its
> solutions are not as widely known as one might hope. So it
> seems we need to raise awareness of the issue (again;-).
>
> That still leaves sites which don't believe in progressive
> enhancement (twitter, disqus, ..), and JS developers who
> have just given up on supporting non-JS visitors..
>
> Thanks again,
> Claus
> http://clausreinke.github.com/
>
>
>
> --
> To view archived discussions from the original JSMentors Mailman list:
> http://www.mail-archive.com/[email protected]/
>
> To search via a non-Google archive, visit here:
> http://www.mail-archive.com/[email protected]/
>
> To unsubscribe from this group, send email to
> [email protected]

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to