Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery - actual time of "slow", "fast" and "normal"

I am trying to find the following answer for the following question?

What is the actual time taken for the jQuery parameters "slow", "fast" and "normal"?

like image 811
Umesh Bagalur Avatar asked Mar 09 '12 10:03

Umesh Bagalur


People also ask

Is jQuery slower?

jQuery is also far from fast loading. It is heavy and slows page loading down a lot. So it has to go and that means anything that uses jQuery has to go as well.

When using fast as the duration for a jQuery effect how many milliseconds will be used for the duration?

Durations are given in milliseconds; higher values indicate slower animations, not faster ones. The default duration is 400 milliseconds. The strings 'fast' and 'slow' can be supplied to indicate durations of 200 and 600 milliseconds, respectively.


1 Answers

From the source;

speeds: {
    slow: 600,
    fast: 200,
    // Default speed
    _default: 400
},

These speeds are also documented in the jQuery API, so you can most likely count on them not changing.

Durations are given in milliseconds; higher values indicate slower animations, not faster ones. The strings 'fast' and 'slow' can be supplied to indicate durations of 200 and 600 milliseconds, respectively. If any other string is supplied, or if the duration parameter is omitted, the default duration of 400 milliseconds is used.

like image 165
Matt Avatar answered Sep 30 '22 01:09

Matt