Closed tvler closed 8 years ago
Looks like
for (var i = 0; i < (media = parseMedia(media)).length; i++)
runs the parseMedia function for every loop iteration. I thought that it would just be called once for the variable setup.
This is pretty bad for performance, will fix.
Fixed in https://github.com/tvler/lazy-progressive-enhancement/commit/f89c1cc9378135ccde46db6f6dd1052340af03e4
Looks like
runs the parseMedia function for every loop iteration. I thought that it would just be called once for the variable setup.
This is pretty bad for performance, will fix.