Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Paste this into the browser’s JavaScript console
- function walkTheDOM(node, func) {
- func(node);
- node = node.firstChild;
- while (node) {
- walkTheDOM(node, func);
- node = node.nextSibling;
- }
- }
- walkTheDOM(document.body, function (node) {
- if (node.nodeType === 1) {
- var willChange = getComputedStyle(node).getPropertyValue('will-change');
- if (willChange !== 'auto') {
- console.log(`will-change: ${willChange} on element with dimensions: ${node.offsetWidth}x${node.offsetHeight}`);
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement