The issue:
Currently, I am utilizing the w3.css to style my website. However, there is a recurring problem with the stability of the w3schools.com
site.
Whenever the site goes down for maintenance, it affects the appearance of my website in a negative way.
To mitigate this issue, I have stored a local copy of the w3.css
on my computer and server hosting my website.
Online Link:
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
Local Link:
<link rel="stylesheet" href="../css/w3.css">
The question at hand:
How can I detect when the link pointing to w3schools
is inactive? This would prompt me to switch to the local w3.css
file. Any suggestions on how to achieve this?
1)Check for broken links
2)Load the local css before the main website loads
In conclusion
Have major corporations found effective solutions for this issue? If multiple critical webservices go offline, it could spell catastrophe for the entire company...
Being new to web development, any advice or insights are greatly appreciated. Thank you.
Edit:(Consideration)
Is it possible to load both the
local(...site hosted on a server)
and w3schools
files simultaneously, even though this may impact site loading times?