Permalink
Browse files

had to change format of longer lines of code in README.md

  • Loading branch information...
1 parent fdfbccb commit 7ab9641ea64fb106fe355e3c7d8d76b5c6d0e371 @Integralist committed Mar 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
2 README.md
@@ -14,7 +14,7 @@ So to avoid this, developers would write code that looked like this...
`window.onload = function() { // do something here };`
-...but the problem was that this is too slow for most developers. You want to be interacting with your DOM as soon as possible, but if you use the `window.onload` event then you're not just waiting for the DOM but all its content (such as images, stylesheets, iframes etc) to load as well.
+...but the problem was that it was just too slow for most developers to put up with. You want to be interacting with your DOM as soon as possible, but if you use the `window.onload` event then you're not just waiting for the DOM but all its content (such as images, stylesheets, iframes etc) to load as well.
Developers needed something quicker, and so here comes the `DOMContentLoaded` event which fires when the browser has finished parsing the document but before the rest of the assets in the page (e.g. images, stylesheets, iframes etc) have finished loading.

0 comments on commit 7ab9641

Please sign in to comment.