Reduce and Reuse Scripts

Optimize the use of scripts in your pages.

Unobtrusive JavaScript

Using unobtrusive JavaScript can be better than extensive HTML markup. The page is smaller and the JavaScript is on the bottom, so the page renders faster. You can also try to do the same for Flash files: give a progress bar and render the page, with the JavaScript at the bottom of the page.

Test DOM Modifications

If you modify the DOM on-the-fly, page loading performance could be negatively affected. If you must modify the DOM, test the performance with multiple browsers and browser versions.

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.