Skip to content

Instantly share code, notes, and snippets.

View matthias-vogt's full-sized avatar

Matthias matthias-vogt

View GitHub Profile
@matthias-vogt
matthias-vogt / toggle-remote-styles.js
Last active April 19, 2016 01:39 — forked from gauntface/toggle-remote-styles.js
Toggles external stylesheets to only see critical, inline CSS
if (styles === undefined) // cache styles
var styles = document.querySelectorAll("link[rel='stylesheet']");
if (externalsDisabled === undefined) {
var externalsDisabled = false;
} else {
externalsDisabled = !externalsDisabled;
}