Commit 44f8e06a authored by Boris Kocherov's avatar Boris Kocherov

disable load images as background

parent 2add47c0
...@@ -465,8 +465,8 @@ ...@@ -465,8 +465,8 @@
this.Api.asyncImagesDocumentStartLoaded(); this.Api.asyncImagesDocumentStartLoaded();
else else
this.ThemeLoader.asyncImagesStartLoaded(); this.ThemeLoader.asyncImagesStartLoaded();
if (!this.bIsAsyncLoadDocumentImages) { // Always load images as foreground
this.nNoByOrderCounter = 0; if (true || !this.bIsAsyncLoadDocumentImages) {
for (id in _images) { for (id in _images) {
images.push(AscCommon.getFullImageSrc2(_images[id])); images.push(AscCommon.getFullImageSrc2(_images[id]));
} }
...@@ -531,13 +531,11 @@ ...@@ -531,13 +531,11 @@
oThis.map_image_index[image_id] = oImage; oThis.map_image_index[image_id] = oImage;
oImage.Image.onload = function () { oImage.Image.onload = function () {
oImage.Status = ImageLoadStatus.Complete; oImage.Status = ImageLoadStatus.Complete;
oThis.nNoByOrderCounter++;
resolve(oImage); resolve(oImage);
}; };
oImage.Image.onerror = function () { oImage.Image.onerror = function () {
oImage.Status = ImageLoadStatus.Complete; oImage.Status = ImageLoadStatus.Complete;
oImage.Image = null; oImage.Image = null;
oThis.nNoByOrderCounter++;
resolve(oImage); resolve(oImage);
}; };
//oImage.Image.crossOrigin = 'anonymous'; //oImage.Image.crossOrigin = 'anonymous';
......
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