Skip to main content
CSS load failure Started by badmonkey · · Read 6515 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

CSS load failure

The specs: Elk 1.1.5, nginx 1.15.8, php7.3, mariadb 10.3.11

The issue: using custom.css to create a besocial variant, occasionally the index_besocial.css and custom.css files fail to load leading to a page with a layout but no color, etc. Hard refresh does not help. This only happens on ONE site on the server, never others running the same setup on the same server. php restart fixes the issue instantly.

Anyone have an idea what is causing the issue? It's rather perplexing!   ;D

Re: CSS load failure

Reply #1

Could it be the "known issue" that the custom is loaded before the "non-custom", invalidating the declarations in it?
If so, a quick (albeit horrible) workaround is to use !important in your custom.css.
Bugs creator.
Features destroyer.
Template killer.

Re: CSS load failure

Reply #2

Quote from: emanuele – Could it be the "known issue" that the custom is loaded before the "non-custom", invalidating the declarations in it?
If so, a quick (albeit horrible) workaround is to use !important in your custom.css.
 
 Perhaps? Does !important need to be used for every detail?

 

Re: CSS load failure

Reply #3

Sorry, I missed your reply @badmonkey .

The answer is... depends. If you want to stay on the safe side you can put it on everything, otherwise you can try and see where it is needed.
I have to track this one, though.
Bugs creator.
Features destroyer.
Template killer.