3 ms·
Yeah, the DOM the web layout engine isn't complicated at all ... display: block; display: inline; display: run-in; display: flow; display:
by jchw 8y ago
Yeah, the DOM the web layout engine isn't complicated at all ...
display: block;
display: inline;
display: run-in;
display: flow;
display: flow-root;
display: table;
display: flex;
display: grid;
display: ruby;
display: block flow;
display: inline table;
display: flex run-in;
display: list-item;
display: list-item block;
display: list-item inline;
display: list-item flow;
display: list-item flow-root;
display: list-item block flow;
display: list-item block flow-root;
display: flow list-item block;
display: table-row-group;
display: table-header-group;
display: table-footer-group;
display: table-row;
display: table-cell;
display: table-column-group;
display: table-column;
display: table-caption;
display: ruby-base;
display: ruby-text;
display: ruby-base-container;
display: ruby-text-container;
display: contents;
display: none;
display: inline-block;
display: inline-table;
display: inline-flex;
display: inline-grid;
Of course that's just CSS/the layout engine. The DOM itself is sort of unrelated. But to that effect, I'd like to mention two filesizes.
React 16.6.0 base library, minified: 6.21 kb
React 16.6.0 DOM integration, minified: 100.39 kb
- pjmlp 8y agoThose file sizes miss the dependencies that are native to the browser. Web Components: 0 kb
- jchw 8y agoYou forgot the polyfills.
- aitchnyu 8y agoCynical me saw Youtube in Chrome loading instantly while Firefox was served a build with the high parsing cost of Polymer polyfills. And starry-eyed developers importing if and for statements and writing imperative dom updates, while running some JS transpiler just like a React guy does. Never mind two major versions made Googling impossible, or debugging methods available to only geniuses.
- pjmlp 8y agoThe browsers we target don't need polyfills.
- jchw 8y agoSo you aren't targeting Safari, Edge, Firefox ESR or any version of IE?
- pjmlp 8y agoNever had to deal with Firefox ESR, and very few customers are still stuck on IE 11, thanks to the ongoing migration to Windows 10. Latest versions of Firefox, Chrome and Safari support all necessary features for Web Components.