Created
February 13, 2015 19:42
-
-
Save jeremenichelli/8ce79f331258209da7cf to your computer and use it in GitHub Desktop.
Use IIFE to retrieve head tag when executed
This file contains 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
document.head = (function(d) { | |
return d.head || d.getElementsByTagName('head')[0]; | |
})(document); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment