Im looking for a very general method of providing an alternative site to a heavy Javascript site (link to an old static site).
My current implementation:
//<Some JS/HTML> $(document).ready(function() { //<Some JS Code> $('#error').attr('style','display: none;'); }); //<Some html> <div id="error"> <span>If you can see this, that means something went very very wrong. Click <a href="somelink.php">Here</a> to use the old portal. Please contact some@email.com with this error and provide as much information as possible, thank you :) </span> </div>
My current problem is that this is visible when the site loads :( Is there a better way?
I know that I can try and add a lot of attempts and catch (several already), but the problem is that the main clients will use a mixture of clients between them. FF2-FF3, all versions between them and IE5-IE6. IE5 just puts a message and redirect to them if they try to load the site without even trying to make it compatible.
And these old browsers are simply not compatible with certain things .... I know I can add to .onerror, but FF did not add compatibility until FF6 was new to most clients. (although this is strange in IE5.5)
NOTE: Im just jQuery 1.7.1 The main thread of the current operation is when it finishes loading the initial javascript that hides the div.
source share