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 - How to display all orders for a single product showing the most recent first? Woocommerce -

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

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -