Skip to content

Instantly share code, notes, and snippets.

View shibacomputer's full-sized avatar
🐕
WHAT'S HAPPENING?

Cade shibacomputer

🐕
WHAT'S HAPPENING?
View GitHub Profile
var assert = require('assert')
window.__shared__require = window.__shared__require || {}
window.__shared__require__handlers = window.__shared__require__handlers || {}
var cache = window.__shared__require
var handlers = window.__shared__require__handlers = {}
exports.oncreate = function (name, cb) {
assert.equal(typeof name, 'string', 'shared-require: name should be type string')
@peterwilsoncc
peterwilsoncc / script.js
Last active December 18, 2015 17:49
Async JS loader
PWCC = this.PWCC || {};
console = this.console || {};
console.log = this.console.log || function(){};
console.error = this.console.error || function(){};
(PWCC.exe = function(window, document, $) {
var html = document.documentElement,
body = html.getElementsByTagName('body')[0];
/*
* Property prefix hacks
*/
/* IE6 only - any combination of these characters */
_ - £ ¬ ¦
/* IE6/7 only - any combination of these characters */