|
|
|
|
|
by BinaryIdiot
4081 days ago
|
|
There is a lot of uses of innerHTML in this code which causes browser reflow; might get better performance creating all of the HTML components via document.createElement() and using document.createTextNode() for all text within a tag itself. But yeah cherry-picking may not be the most constructive thing however you do have good points. The DOM API is kinda funky (I wish it did some things like chaining) but it's very simple. Half the times I write a very thin wrapper around it JUST to provide some chaining. |
|
But I suppose I'd love one that is thinner, like your "very thin wrapper", if anybody has pointers.