Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some optimizations using JS over jQuery. #33

Merged
merged 3 commits into from Jan 27, 2016
Merged

Some optimizations using JS over jQuery. #33

merged 3 commits into from Jan 27, 2016

Conversation

ghost
Copy link

@ghost ghost commented Jan 25, 2016

isPlainObject in Pure Javascript.

Simply put, this test convinced me to replace it: https://jsperf.com/jquery-is-plain-object-vs-javascript-way
Results:
screen shot 2016-01-26 at 3 26 46 am

Some optimizations.

Worked on the loops and managed to eliminate some of them. Got one jQuery each replaced with pure JS. I tried several of the others, but didn't have much luck.

Get elements using pure JS within $().

This will give you a better performance, and at the same time, allow
you to use jQuery.
(https://stackoverflow.com/questions/1854859/jquery-performance-wise-what
-is-faster-getelementbyid-or-jquery-selector)

Barry Anders added 2 commits January 25, 2016 16:33
This will give you a better performance, and at the same time, allow
you to use jQuery.
(https://stackoverflow.com/questions/1854859/jquery-performance-wise-what
-is-faster-getelementbyid-or-jquery-selector)
Hope I didn’t mess anything up. Seems to be working fine for me. I
tried to think it through before doing anything too crazy.
@ghost ghost changed the title Get elements using pure JS. Some optimizations using JS over jQuery. Jan 26, 2016
chrisdiana added a commit that referenced this pull request Jan 27, 2016
Some optimizations using JS over jQuery.
@chrisdiana chrisdiana merged commit 5c16b06 into chrisdiana:master Jan 27, 2016
@ghost ghost deleted the upstream branch January 27, 2016 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant