¡@

Home 

2014/10/16 ¤W¤È 12:06:16

jquery Programming Glossary: perf

Treating each div as a “page” when scrolling

http://stackoverflow.com/questions/12849439/treating-each-div-as-a-page-when-scrolling

events but only with a limited number of properties for perf reasons. Need the original event to get 'touches' var e event.originalEvent..

Simple javascript inheritance using $.extend and module pattern

http://stackoverflow.com/questions/16659326/simple-javascript-inheritance-using-extend-and-module-pattern

tracking to know my object instance. Disadvantages Small perf degradation Risk possible wag of the finger from Doug Crockford.. The reason I think it has its advantages is whatever small perf degradation you see is recaptured in the simplicity of the coding.. this question I think it boils down to the issue of performance . You mentioned that there is small performance degradation..

is .find() faster than basic descendant selecting method?

http://stackoverflow.com/questions/3422230/is-find-faster-than-basic-descendant-selecting-method

method In Paul Irish's blog http paulirish.com 2009 perf in slide 30 it is mentioned '#container' .find 'div.robotarm'.. than '#container div.robotarm' What's your opinion jquery performance selector share improve this question Benchmark test..

How do I implement collision detection between a set of Div elements?

http://stackoverflow.com/questions/8628368/how-do-i-implement-collision-detection-between-a-set-of-div-elements

your need for full collision detection as it can be perf heavy and complicated. Maybe you just need overlap detection.. Aligned Bounding Boxes AABB s . This can give you huge perf increases and huge complexity reductions. The math for checking..

jquery serialize and $.post

http://stackoverflow.com/questions/920294/jquery-serialize-and-post

Here's the jquery #addShowFormSubmit .click function var perfTimes #addShowForm .serialize .post includes add_show.php name.. .post includes add_show.php name #showTitle .val results perfTimes function data #addShowSuccess .empty .slideDown slow .append.. here's the php show _POST 'name' results _POST 'results' perfs explode results foreach perfs as perf perf_key_values explode..

Treating each div as a “page” when scrolling

http://stackoverflow.com/questions/12849439/treating-each-div-as-a-page-when-scrolling

'touchstart' function event if currentNav 3 jQuery clones events but only with a limited number of properties for perf reasons. Need the original event to get 'touches' var e event.originalEvent scrollStartPos e.touches 0 .pageY Bind mouseWheel..

Simple javascript inheritance using $.extend and module pattern

http://stackoverflow.com/questions/16659326/simple-javascript-inheritance-using-extend-and-module-pattern

that is being passed into a callback it is NOT something I am tracking to know my object instance. Disadvantages Small perf degradation Risk possible wag of the finger from Doug Crockford Consider this just run in any js console var Animal function.. than a few instances of something. Usually only a couple. The reason I think it has its advantages is whatever small perf degradation you see is recaptured in the simplicity of the coding experience. We have a LOT of code to write these days... sense. javascript jquery inheritance module share improve this question I think it boils down to the issue of performance . You mentioned that there is small performance degradation but this really depends on scale of the application 2..

is .find() faster than basic descendant selecting method?

http://stackoverflow.com/questions/3422230/is-find-faster-than-basic-descendant-selecting-method

.find faster than basic descendant selecting method In Paul Irish's blog http paulirish.com 2009 perf in slide 30 it is mentioned '#container' .find 'div.robotarm' is faster than '#container div.robotarm' What's your opinion.. it is mentioned '#container' .find 'div.robotarm' is faster than '#container div.robotarm' What's your opinion jquery performance selector share improve this question Benchmark test http jsperf.com find vs descendant selector share improve..

How do I implement collision detection between a set of Div elements?

http://stackoverflow.com/questions/8628368/how-do-i-implement-collision-detection-between-a-set-of-div-elements

still be inside the container. I'd suggest you first reexamine your need for full collision detection as it can be perf heavy and complicated. Maybe you just need overlap detection ala jQuery UI's droppable Or maybe you need something like.. need to search for more info you can consider divs to be Axis Aligned Bounding Boxes AABB s . This can give you huge perf increases and huge complexity reductions. The math for checking AABB to AABB collision is about as easy as it gets for overlap..

jquery serialize and $.post

http://stackoverflow.com/questions/920294/jquery-serialize-and-post

it using GET. Anyone have any ideas why this is happening Here's the jquery #addShowFormSubmit .click function var perfTimes #addShowForm .serialize .post includes add_show.php name #showTitle .val results perfTimes function data #addShowSuccess.. .click function var perfTimes #addShowForm .serialize .post includes add_show.php name #showTitle .val results perfTimes function data #addShowSuccess .empty .slideDown slow .append data here's the php show _POST 'name' results _POST 'results'.. data #addShowSuccess .empty .slideDown slow .append data here's the php show _POST 'name' results _POST 'results' perfs explode results foreach perfs as perf perf_key_values explode perf key urldecode perf_key_values 0 values urldecode perf_key_values..