Last active
August 29, 2015 14:03
-
-
Save sTiLL-iLL/2c1c9e7d2b9f4347b8bc to your computer and use it in GitHub Desktop.
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
// caching script fetcher // | |
var futrs = {}; | |
var ajaxFetch = function( url, cBak ) { | |
if ( !futrs[ url ] ) { | |
futrs[ url ] = $.Deferred(function( defer ) { | |
$.getScript( url ) | |
.then( defer.resolve, defer.reject ); | |
}).promise(); | |
} | |
return futrs[ url ].done( cBak ); | |
}; | |
----------------------------------------------------------------------- | |
// << use it! >> | |
ajaxFetch('//totalPorn247.com/freeVideos/Tits+Ass?=199BOOBzInVIEW.js', cBak); | |
function cBak(resp) { | |
if(resp.length > 0) { | |
var dd = document.querySelector('#resultDiv'); | |
dd.innerHTML = renderDirtyWords(a, z, 125); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment