If you want something to work right after all the calls to $(document).ready() , you can place it once anywhere on your page:
$(document).ready(function() { setTimeout(function() {
This will trigger a call along with all other document.ready calls, but it sets a short timeout that will be executed after all other document.ready calls have completed.
source share