javascript - image.src to large image freezes while loading -


i keep reading images loaded asynchronously, or use onload (which doesn't solve problem). when loading large image, canvas.todataurl(), whole page freezes while image being loaded.

what i'm doing prerendering procedurally generated map (for game) in hidden canvas, loading data image draw faster. actual problem setting src, happens if img.src=img.src invoke loading again.

is there way @ make large images load on time instead of @ once , causing huge disruption?


Comments

Popular posts from this blog

.htaccess - htaccess convert request to clean url and add slash at the end of the url -

php - facebook and github login HWIOAuthBundle and FOSUserBundle in Symfony2.1 -

hadoop - Sqoop installation export and import from postgresql -