Created
July 20, 2010 15:12
-
-
Save getify/483080 to your computer and use it in GitHub Desktop.
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
<script src="data:text/javascript,alert('hello world');"></script> | |
<script>alert("hello world");</script> |
mathias -- @fearphage pointed out that, for browsers that support script data-uris, the load/error events would fire, whereas not with inline script blocks. this might have a limited use in the context of using "defer" on script tags.
That’s good to know!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I seriously doubt data URLs for
script
elements are useful.Zoompf had the following to say about that: http://twitter.com/zoompf/status/13407235637