'CSS @import to blank document bombing entire style on failure

The license for a font on our website requires that we add an @import statement to the css file that hits the licensing server. I've gone to that URL in my browser, and the body is empty - it's just so they can track how many times we've used the font. Every asset, style, and a bit of code is in our application.

A contractor has that URL blocked on his computer, and so the entire stylesheet seems to be bombing (despite no styles coming from that URL - the font is stored locally as well). Is there any way to make a css @import statement optional so that if their site goes down our application doesn't look like a drunken chimpanzee made it?

It doesn't seem like it looking at https://www.w3schools.com/cssref/pr_import_rule.asp so figured I'd try the StackOverflow hail mary and see if anybody knows any tricks.

Putting the import in its css file is kinda of problematic because it's in a library consumed by multiple applications (it is a companion project to an angular component library, so each consuming application would have to separately implement it), but that's the direction I'll go if there are no other ideas.

This is stupidly hard to google - I get page after page of less/sass compile error issues.

Appreciate any feedback, even if it's just "nope can't do that"

css


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source