Skip to content

Instantly share code, notes, and snippets.

Anas R. Firdousi afirdousi

Block or report user

Report or block afirdousi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jackkoppa / fix-sw.js
Last active Oct 16, 2019
Workaround npm build script, to temporarily fix Angular #21636 (see
View fix-sw.js
* Temporary fix for
* Include in your project; run after the `ng build --prod` step by running `node location/of/this/script/fix-sw`
* Warning: removes any instances of setting EXISTING_CLIENTS_ONLY state, which will likely have adverse effects in some situations
necolas / snippet.js
Created Jun 14, 2011
Optimised async loading of cross-domain scripts
View snippet.js
* Updated to use the function-based method described in
* Better handling of scripts without supplied ids.
* N.B. Be sure to include Google Analytics's _gaq and Facebook's fbAsyncInit prior to this function.
(function(doc, script) {
var js,
fjs = doc.getElementsByTagName(script)[0],
You can’t perform that action at this time.