how to delay jquery execution until user gets there code example
Example: wait 0.5 after function javascript
statement1();
setTimeout(function() {
statement2();
}, 500);
statement1();
setTimeout(function() {
statement2();
}, 500);