I have been exploring different ways to notify users if certain resources do not load correctly.
So far, I have come across the following methods:
For CSS, I stumbled upon an example in the source code of Trello:
<div id="nocss"> Your browser was unable to load all of Trello's resources. They may have been blocked by your firewall, proxy, or browser configuration. <br>Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again. <hr> </div>
Additionally, in the last CSS file that was downloaded, I found the following CSS properties:
#nocss { display: none; }
For JS, I read an article titled The best way to load external JavaScript, but I am still unsure about it.
UPDATE
Just a small update: the ideal solution should also be compatible with files from Content Delivery Networks (CDNs), as they tend to pose the biggest challenge. I once encountered a situation where jQuery, added to a site, was blocked by companies behind certain firewalls.