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
Post a Comment