Can my app control the order in which stylesheets are loaded?

If my app and another app both override the same style, and the other app is using !important, is there any way I can ensure my stylesheet loads after the other app so that mine will take precedence?

I don’t think I can do it with selector specificity because the other app uses !important so load order is the only way I can think of.

I don’t think so but also relying on load order sounds like trouble in general

It turns out that specificity still matters when two styles have !important so I can override it by both adding !important and being more specific. I don’t need to rely on load order. Cool!

1 Like

loading order is important. but specific selectors are importanter.