gleitz recommended this 1 year, 6 months ago
JavaScript can be a real pain when it comes to speed (especially on a phone). This Tech Tech at Google will give you the basics on tuning your JS.
matthandlersux commented 1 year, 6 months ago
this was good but a bit old, i wonder if there's a more recent talk because it seems like maybe some of the things he mentions here have optimizations now.totally excited about the idea of using document fragments though
gleitz commented 1 year, 6 months ago
It turns out that just appending strings is faster than document fragments. try something like:var buffer = '', i=objs.length;while (i--) { buffer += objs[i];}
Forgot your password? Create account
Hunch
matthandlersux commented 1 year, 6 months ago
this was good but a bit old, i wonder if there's a more recent talk because it seems like maybe some of the things he mentions here have optimizations now.
totally excited about the idea of using document fragments though
gleitz commented 1 year, 6 months ago
It turns out that just appending strings is faster than document fragments. try something like:
var buffer = '', i=objs.length;
while (i--) {
buffer += objs[i];
}