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

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

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