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

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

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