optimization « performance « jQuery Q&A

Home
jQuery Q&A
1.addClass
2.alert
3.array
4.attribute
5.browser
6.callback
7.clone
8.Cookie
9.Date
10.Development
11.document
12.dom
13.element
14.filter
15.Firefox
16.flash
17.format
18.html
19.input
20.internet explorer
21.json
22.mootools
23.page
24.performance
25.regex
26.safari
27.selector
28.setTimeout
29.String
30.table
31.Text
32.trigger
33.URL
34.video
35.xml
jQuery Q&A » performance » optimization 

1. Javascript (jQuery) performance measurement and best practices (not load time)    stackoverflow.com

I'll say right off the bat that this question is NOT about load times; I know about YSlow, the Firebug profiler, and whatever best practices and tools googlage reveals about page ...

2. Search through a big list fast with jQuery    stackoverflow.com

I'm using this code to search trough about 500 li tags.

$(function() {

 $.expr[":"].containsInCaseSensitive = function(el, i, m){
  var search = m[3];
  if (!search) return false;
  return eval("/" + ...

3. JavaScript: What is the performance gain by optimizing Name Lookups?    stackoverflow.com

The company I work at bought us (or rather me) the jQuery Cookbook by O'Reilly which I am reading from front to back. Now I am at 5.13 which talks about ...

4. Is it faster to construct jQuery objects using method syntax or pure html?    stackoverflow.com

Using jQuery what provides for faster object construction: With the HTML code

$('<dd class="foo baz" id="bar"> foobar </dd>')
Or with the pure object/method variant
$('</dd>').addClass('foo').addClass('baz').id('bar').text('foobar')
I'm not sure how the internals work, feel free to supply ...

5. optimizing jQuery Selectors - Which is faster?    stackoverflow.com

Are selectors or functions faster in jQuery? Example:

$('#something div.else'); // find multiple divs with class .else
or
$('#something').children('div.else');
I'm trying my best to optimize a page with hundreds of returned elements that ...

6. Jquery custom core : use just what you need    stackoverflow.com

As you may have guessed, i'm trying to speed up page loading on my website. So since I Don't use most of jquery's functions, I thought that I could use a "lighter" ...

7. How to make this JavaScript much faster?    stackoverflow.com

Still trying to answer this question, and I think I finally found a solution, but it runs too slow.

var $div = $('<div>')
    .css({ 'border': '1px solid red', ...

8. Jquery / Javascript speed... should I really care?    stackoverflow.com

I've seen lots of posts comparing the speeds of various selector queries and DOM traversal methods. Of course it matters in cases with hundreds or thousands of elements and O^n ...

9. should I care about this kind of optimization - jQuery - DOM changes    stackoverflow.com

I have simple question if worths to "cache" DOM changes even outside if the loop (for cycle,..) In case I have e.g. 1000 upcoming changes it makes huge performance boost (as ...

10. Performance of delegate()    stackoverflow.com

I've been using $("body").delegate(".selector", "click", function() { ... }); for a while now, and I was wondering: If I delegate the click event to a containing element closer to the actual ...

11. Client side optimization issue    stackoverflow.com

Consider the following casses.

  1. Multiple js files are compressed/gzipped and placed in a one file which is in the head section of the HTML document.
  2. The compressed file(containing few files) is located ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.