Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@floydophone What is the style workflow @ instagram I see no styling loading in the network tab - but you're using class' in the markup.
// In chrome dev-console
[].splice
.call(document.styleSheets,0)
.map(function(x){ return x.href })
// => [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]
@christiantakle

This comment has been minimized.

Copy link
Owner Author

christiantakle commented Aug 8, 2014

I wonder if you're doing something similar to:

var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = '.cssClass { color: #F00; }';
document.getElementsByTagName('head')[0].appendChild(style);

or
http://davidwalsh.name/add-rules-stylesheets

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.