Commit 621e42aa by Piotr Mitros

Comments

parent 2141909a
...@@ -45,7 +45,9 @@ function AnimationXBlock(runtime, element) { ...@@ -45,7 +45,9 @@ function AnimationXBlock(runtime, element) {
// Go to current position in animation // Go to current position in animation
update_animation(); update_animation();
// Preload images // Preload images. I'm not sure this works. Internet
// said it did, but I think it might not, just from
// performance
for(i=0; i<position.length; i++){ for(i=0; i<position.length; i++){
animation[position]["image"] = new Image(); animation[position]["image"] = new Image();
animation[position]["image"].src = animation[position].src; animation[position]["image"].src = animation[position].src;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment