4 ms·
left-pad only adds 7ms on edge, seems worth it. On the other hand, Jquery adds almost a second. And you hardly ever see pages that don't use it. (Unless they us
by mnx 9y ago
left-pad only adds 7ms on edge, seems worth it.
On the other hand, Jquery adds almost a second. And you hardly ever see pages that don't use it. (Unless they use some other heavy js library). But it's just soo convenient.
- maccard 9y ago7ms is an eternity. You can do half of this [0] in 7ms or you can download one line of code. I’d be out of a job if I introduced 1/10 of that time for text padding. [0] http://www.adriancourreges.com/blog/2017/12/15/mgs-v-graphics-study/ http://www.adriancourreges.com/blog/2017/12/15/mgs-v-graphic...
- ssalazar 9y agoIts completely meaningless to compare the render time of a single frame of a AAA video game with the load time of web page over a network.
- dingdingdang 9y ago"completely meaningless" may well be putting it a bit harshly: there is good lessons to be learned by drawing on lessons learned across different fields of computing. 7ms is hardly anything but apply it to a list of only a 1000 elements and you have now slowed down the user experience by 7000ms (I know, this would all be buffered and hidden, etc. but this is just one tiny component and eventually all this stuff leads to real perceptible awful jankiness that could have been avoided if people allowed themselves to think a bit about performance).
- busterarm 9y agoI often find that most of the people who make the Jquery argument are the same people pushing Angular or React, both of which are bigger libraries...