This week’s usual “Friday short post” about using jQuery in handheld devices. If you are a developer who is using jQuery in applications that were developed for use in environments with small processing power such as handheld devices, mobile phones, PDA’s, etc. you will find this post useful.
jQuery.fx.off setting to
// Dissable all effects jQuery.fx.off = true; // Shorthand $.fx.off = true;
Now all your effects such as
slideUp(), etc. will not be animated. They will simply be hidden and shown immediately (by changing CSS rules
display:block;) to save CPU processing time.
By setting the
jQuery.fx.off back to
false you enable all animations and effects.