If a page is small enough, I usually will hide them in javascript, on $
(document).ready():

myEl = $('#myEl').hide();
myEl.each(...);

A good alternative is to add a class to the body/html when javascript
is on, see here:
http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content

On Jun 17, 6:37 am, heldtogether <josh.seph...@googlemail.com> wrote:
> hey, i want to hide some elements on my site, but don't want to make
> these inaccessible for users without javascript enabled. Some users
> are complaining about being able to see that element for a split
> second before the page has finished loading and the element is hidden.
> Is there a way in which I can hide the elements right from the start,
> without using css to hide it completely?

Reply via email to