瀏覽代碼

Actually make sure preview image loads first.

pull/26/head
Matthew Petroff 10 年之前
父節點
當前提交
b2d8b19173
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. +6
    -0
      src/js/pannellum.js

+ 6
- 0
src/js/pannellum.js 查看文件

@@ -775,6 +775,12 @@ function processOptions() {
}
document.body.style.backgroundImage = "url('" + p + "')";
document.body.style.backgroundSize = '100% 100%';
// Initialize a request to make sure the browser begins fetching the
// preview image.
var request = new XMLHttpRequest();
request.open('GET', p, false);
request.send();
}
// Process other options


Loading…
取消
儲存