mockko / livereload

LiveReload applies CSS/JS changes to Safari or Chrome w/o reloading the page (and autoreloads the page when HTML changes)
http://livereload.com/
1.18k stars 56 forks source link

Use document.styleSheets and document.scripts instead of querying DOM via document.getElementsByTagName #35

Closed NV closed 13 years ago

NV commented 13 years ago

document.styleSheets is better than document.getElementsByTagName("link") because it doesn't include <link rel=alternate>, <link rel=search>, <link rel="fluid-icon">, and so on. Also, it should be faster a bit.

NV commented 13 years ago

Fixed in c65e295772bf91292c52253a3e3de0f344c1a7f1