Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
HTMLInspector Snippet for Google Chrome
function _loadScript(url, callback) {
// Adding the script tag to the head as suggested before
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = url;
// Then bind the event to the callback function.
script.onload = callback;
// Fire the loading
var HTMLInspector = {
url: '//',
init: function () {
_loadScript(HTMLInspector.url, HTMLInspector.init);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.