Quantcast
Channel: Site5 Free Premium WordPress Themes » All Posts
Viewing all articles
Browse latest Browse all 8865

Dropdown menu shows on page load

$
0
0

Hi,

I got a problem with my drop down menu showing on page load.

The problem is that the page loads top to bottom, starting with the <head>, scripts and styles within the head, then the <body> tag.
Once the <body> tag and all of it’s children exists( images may not be done loading still ) the domready event fires. there is a small window between domready event and the html getting styles applied by javascript within the domready event handler, resulting in a FOUC.

But I have no clue of fixing this problem. Can anybody help?

PS. I host on a locally server, so I can’t attach URL.

Best regards,
Andreas


Viewing all articles
Browse latest Browse all 8865

Trending Articles