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

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -