Hello. There is a site on Drupal 7. Styles are compressed through the module 'AdvAgg Compress CSS', but quite often content loads faster than css and the user can see the page without css for a few seconds. Is there any way to make the content load after full css download? Thank you in advance.

    2 answers 2

    This usually comes from illiterate project development or the use of a very large number of third-party libraries. In this case, put preloaders that hide the display of the page for the user until everything is loaded .. If it is critical for you that it would not disintegrate, take out the critical css (up to 14kB) in the head of the site. and everything else can already go down through the delayed load. Content "postpone" does not work, due to the fact that html comes before the rest

      Make sure that the display styles are loaded in the head of the document. It is desirable first in the list, unless of course you are not using frameworks. Then right after the framework. Then the rest of the files and libraries.