General: make use of jquery onload callback