sqlitedrupaldrupal-8

Drupal Installation Default Page not loading css


I recently installed Drupal on Windows Server I had no errors on installation. There was a warning for OPCaching. I also don't think it should affect it but I used SQLite.

After installation the default page loaded with no CSS. Does anyone know why this happened or how to fix it?

enter image description here


Solution

  • I found the solution on another site, check the link attached.

    "You have enabled CSS compression through admin > Settings > Performance, so the compressed CSS file is creating at sites/default/files/CSS directory and the same file is loading.

    If you disable the CSS compression, you can see all the CSS files from the drupal core, contributed modules and theme.

    The CSS compressor will combine all the CSS files from the drupal core, contributed modules and themes and create a compressed file in sites/default/files/CSS.

    When you are developing, disable the CSS compression, when you deploy on a production server, enable CSS compression."

    https://www.quora.com/Why-is-the-Drupal-site-not-loading-CSS