Last active
August 29, 2015 14:12
-
-
Save dominic-p/e40a3d1782ac2afe5c9b to your computer and use it in GitHub Desktop.
A test for dependant async script loading performance (see https://www.igvita.com/2014/05/20/script-injected-async-scripts-considered-harmful/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var head = document.getElementsByTagName('head')[0]; | |
var script_1 = document.createElement('script'); | |
script_1.src = "http://udacity-crp.herokuapp.com/time.js?rtt=1&a"; | |
head.appendChild(script_1); | |
var script_2 = document.createElement('script'); | |
script_2.src = "http://udacity-crp.herokuapp.com/time.js?rtt=1&b"; | |
head.appendChild(script_2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment