csswordpresspreloader

The menu (Navigation bar) becomes collapse unstylish for a few second. need Solution


I am facing a problem after deactivating the pre-loader. When someone tries to open the website all the menu (Navigation bar) becomes collapse unstylish for a few seconds. After a while when the page has fully loaded the menu gets its style.

I think the CSS file is loading after the website is gets fully loaded, maybe this is the reason. How Can I solve this issue?


Solution

  • put the css inside head tag before any scripts etc, add preload to your css and critical js files