Create a gist now

Instantly share code, notes, and snippets.

anonymous /3rdparty-Listing3-3.html
Created Dec 28, 2011

What would you like to do?
Listing 3.3 The script include snippet with separately-defined.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<script src="./Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
<p>page starts rendering</p>
<p>script is loading asynchronously ... (in all browsers)</p>
<script type="text/javascript">
(function () {
var script = document.createElement('script');
script.type = 'text/javascript';
script.async = true;
script.src = ''
var entry = document.getElementsByTagName('script')[0];
entry.parentNode.insertBefore(script, entry);
} ());
<div data-stork-product="1337" />
<hr />
<div data-stork-product="2012" />
<hr />
<p>page has finished rendering</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment