stylesheet - Counter measure if/when external CSS file is not loaded when the page did -


Due to the network or some other reason, some css files are not loaded in some sites, and you are unchanged / un- The layout will look-all the ugly pages.

It happened on those pages that I did earlier.

I am thinking something like this place at the top of the page and it is clear:

  / * .... title and stuff * / & lt; Body & gt; & Lt; H2 id = "hiddennote" & gt; If you do not see this page properly, please refresh & lt; / H2 & gt; / * .... The rest of the page .... * /  

This is the definition of an external stylesheet:

  / * Other styles defined * / #hiddennote {display: none;}  

Functionally I know that it will work any drawbacks?

Another possible drawback is that the user depends on what that page should look like knowing like. You can decide that something happens by changing the language of the message, "This page is not displaying properly! When you are free to use the content below, you will be able to load layout and styling information You may want to refresh your browser. " You can also include a screenshot, assume that your images are not hosted on the same problem network.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -