Permalink
3 comments
on commit
sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
use for loop instead of jQuery.each in getWH()
- Loading branch information
1 parent
774eba3
commit e0a4aa415d988b21c5b666a20ab00823673ffc3d
Showing
1 changed file
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e0a4aa4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't know how much you care, but since order of execution shouldn't matter here, a reverse while loop would save you
249430 (-29) jquery.js
94160 (-10) jquery.min.js
33319 (-1) jquery.min.js.gz
e0a4aa4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's actually a good point. also, one less var to declare.
e0a4aa4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For 1 character? All we care about is:
33319 (-1) jquery.min.js.gz