I’m using jQuery for styling only, while divs are created using html tags in the body section. The problem is that the browser first displays the content of the page aligned to the left side then after a few seconds the content is arranged according to the jQuery css styling. My question is: Is there a way to make the browser display the content in the correct location without aligning it first to the left side? Thanks.
Share
Your options:
Don’t use jQuery to apply style information for everything, that’s not it’s purpose
Start the page with all the content hidden, apply your class information and
styleattributes to the hidden content. Once you’re done, unhide the content