I made a tiny (320B) #JavaScript function for conditionally joining class names 10x~20x faster than the alternative!https://git.io/classwrap
Oh lordy; so you're doing string concat and forcing browser to re-parse the whole set!?
-
-
Another of the horrors of thinking in view libraries I guess. But now I am intrigued: what if VDOM used classList behind the scenes?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.