Skip to content

Commit

Permalink
Remove rendering blocking javascript.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Riti committed Nov 11, 2013
1 parent 64a1e98 commit 50e10b6
Show file tree
Hide file tree
Showing 3 changed files with 2,444 additions and 7 deletions.
24 changes: 17 additions & 7 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,22 @@ <h1>Wells</h1>

</div> <!-- /container -->


<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="scripts/jquery.js"></script>
<script src="scripts/bootstrap.js"></script>
<script src="scripts/holder.js"></script>
<!-- JS -->
<script type="text/javascript">
// Add a script element as a child of the body
function downloadJSAtOnload() {
var element = document.createElement("script");
element.src = "scripts/all.min.js";
document.body.appendChild(element);
}

// Check for browser support of event handling capability
if (window.addEventListener)
window.addEventListener("load", downloadJSAtOnload, false);
else if (window.attachEvent)
window.attachEvent("onload", downloadJSAtOnload);
else window.onload = downloadJSAtOnload;
</script>
<!-- /JS -->
</body>
</html>
Loading

1 comment on commit 50e10b6

@alicomputer7
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plz can you help me ?

Please sign in to comment.