You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure that CSS and JavaScript code is not inlined in the HTML code of the page, with the possible exception of
configuration variables for JavaScript objects.
If CSS or JavaScript code is included in HTML file's body in several pages (or even in the entire site),
then this code must be downloaded for each page requested by the users, increasing downloaded data volume.
However, if CSS and JavaScript codes is written in external files,
browsers can store them in their local cache system and not download them again.
Examples
In HTML code, do not write:
<styletype="text/css" media="screen">p { color:#333; margin:2px0 }
/* All CSS declarations of the site */</style>
but rather :
<linkhref="css/styles.css" rel="stylesheet">
Validation rule
The number of ...
is equal to or less than
URL with a significant quantity of inline CSS/Javascript code