We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After app render, will be good idea to move binded styles to style node
var styleNode = null; function createStyleNode() { var head = document.head || document.getElementsByTagName('head')[0]; var style = document.createElement('style'); style.type = 'text/css'; head.appendChild(style); return style; } function addStyle(css) { if (!styleNode) { styleNode = createStyleNode(); } if (styleNode.styleSheet){ styleNode.styleSheet.cssText = css; } else { styleNode.innerHTML = ''; styleNode.appendChild(document.createTextNode(css)); } } var styles = Array.prototype.map.call(document.getElementsByTagName('div'), function(node, index) { node.dataset.index = index; var style = node.getAttribute('style'); node.removeAttribute('style'); var prefix = ''; if (node.className) { prefix = '.'+node.className.split(' ').join('.'); } return `${prefix}[data-index="${index}"]{${style};}`; }); addStyle(styles.join(''));
The text was updated successfully, but these errors were encountered:
this needs additional performance investigation, since we already do updates in batches and it will most likely trigger additional layouts
Sorry, something went wrong.
No branches or pull requests
After app render, will be good idea to move binded styles to style node
The text was updated successfully, but these errors were encountered: