-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
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
[Big-dom-generator] Change SVG to <use> element and Fix dom node count #295
[Big-dom-generator] Change SVG to <use> element and Fix dom node count #295
Conversation
* Replaced generated css with complex handcrafted CSS 📖 (#44) --------- Co-authored-by: Luis Fernando Pardo Sixtos <[email protected]> Co-authored-by: lpardosixtosMs <[email protected]> * use syntax for one svg, tasklist * update build scripts * fix dom size counter (#54) * remove not needed attributes * update to node counting * build all complex dists --------- Co-authored-by: Luis Fernando Pardo Sixtos <[email protected]> Co-authored-by: lpardosixtosMs <[email protected]>
* hide the horizontal overflow * regen dists
Hey, I've seen this and was wondering why you decided to implement this change. Is there some real-world data backing up this change? I did see some versions of this, but that can be subtly different. For example some are using Thanks for your answer. |
We realized that around a third of the elements of the generated DOM were coming from these SVG items, this was not intended and I felt we should need a good reason to have that many svg elements. We didn't do a thorough search to justify going with Perhaps the we could avoid the |
Do we have any data which suggests that SVG use element is commonly used? |
@rniwa Thanks for asking. I did a quick search across 20 sites, and I only found 3 using the Sites visited:
Sites using the
|
Closing this PR. I'll open a new one for the bug fix only. |
Changes in this PR include:
"node_modules/big-dom-generator/dist/big-dom-generator.css"
because although it is shared by the build scripts. lit-complex & javascript-web-components-complex will not use it and it will have to be removed put back in the indivisual build scripts.TARGET_SIZE
specified inresources/todomvc/big-dom-generator/params.js
NOT READY FOR REVIEW [WIP]