Image loading progress monitor from javascript

check this