Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- script running slow


Fotiman - 1:08 pm on Apr 5, 2012 (gmt 0)


Here's what I would suggest. Give your <html> tag a class of "no-js":

<html class="no-js">

In the head of your page, include a small snippet of JavaScript that replaces that class with "js". Modernizr [modernizr.com] will do this for you. This will happen before the rest of your content loads. Then instead of using JavaScript to set the display style, include CSS like the following:

.js #image1,
.js #image2,
.js #image3,
.js #full_images,
.js description_1,
.js description_2,
.js description_3 {
display: none;
}


Thread source:: http://www.webmasterworld.com/javascript/4437180.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com