css - jQuery, Hiding elements on ready is always jumping on page load. how can this be avoided? -


this code.

i can't apply display:none;

$(document).ready(function() {     $("#leftnav li.navcathead").not(":first").siblings("li").hide().end().end().first().addclass("open"); }); 

this article may bit: http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -