/    Sign up×
Community /Pin to ProfileBookmark

jQuery 2 slow?

i am working on a site that is meant to run on a specific machine, the only catch is the machine has some VERY poor performance… 400mHz CPU is one of them.

When i bring in jQuery the system slows WAY down, i am fine with slow loading, but even after load the general performance dies.

for example, when i do simple DOM manipulation using jQuery it chokes to a crawl. but the SAME DOM manipulation using just javascript the performance is great.

even the act of including the jQuery file but doing the manipulation with JavaScript gets crappy performance.

My guess is the jQuery hooks or something are just killing things… but i love jQuery and hate JS lol does anyone have any idea if there are sections i can remove or “mini” versions that arnt as intrusive?

its the convent classes i want and creating them all from scratch is KILLING me (next(), children(), nextAll(), append()…. to name a few)

ideas? thanks,
-aPeg

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@rpg2009May 06.2011 — I don't use frameworks yet myself, but how do other engines compare. Sly, YUI, or just sizzle standalone?

With YUI you can pick and choose the modules you need can't you?

RPG
Copy linkTweet thisAlerts:
@Jeff_MottMay 06.2011 — I'll be honest, I think there's a different issue going on. jQuery has worked just fine on mobile devices with similar or worse processor speeds, so that shouldn't be the problem. But if you can link to the page where we can reproduce and troubleshoot the performance issue, then maybe we can help find the real problem.
Copy linkTweet thisAlerts:
@aj_nscMay 07.2011 — 
but i love jQuery and hate JS
[/quote]


If you continue on and actually learn Javascript for what it is, rather than "learning" a library, you'll be very disappointed you made such a non-sensical statement.

400MHz machine, eh? What browser are you doing? Also, more importantly, what type of DOM manipulations are you trying to perform (e.g. post code please)?
Copy linkTweet thisAlerts:
@rnd_meMay 08.2011 — use jQuery to harvest your nodes with a css selector, manipulate the nodes directly once gathered.


use jQuery 1.6; it's faster than older versions.

use chrome, it's the fastest way to run jQuery code.
×

Success!

Help @apeg spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...