How to determine the execution time of a jQuery script? -


i found interesting script (link) runs once after document loaded, how run script every time see it? guys.

jquery(document).ready(function($){     settimeout(function(){          $('.trans--grow').addclass('grow');     }, 275); }); 

you can wrap code function this:

function yourfunction (delayms) {     settimeout(function() {         $('.trans--grow').addclass('grow')     }, delayms) } 

and invoke function whenever want via yourfunction(275).


Comments

Popular posts from this blog

php - Autoloader issue not returning Class -

C++ Program To Find Smallest and Largest Number In Array -

How do I compare strings in Java? -