简体   繁体   中英

How to change Image Loading Order (for Lightbox)

I've got a page with a lot of images (thumbnails). You should be able to expand the images via Lightbox. I need to encourage the browser to load the image in the Lightbox before any other image (thumbnail).

I remember some articles (I can't find anymore) on how to influence the loading mechanism of the browser (use a different subdomain to allow another thread), but I'd like to know whether there might be other options (ie without additional subdomains).

To clarify the issue:

Example (how I'd like it to behave)

  • I visit the page
  • I click on the 3rd picture thumbnail
  • The 3rd picture is shown (while the remaining thumbnails are loading)

Example (how it behaves right now)

  • I visit the page
  • I click on the 3rd picture thumbnail
  • A spinning wheel is shown until all thumbnails are loaded
  • The 3rd picture is shown

Are there any tutorials/papers/views on this issue?

只是在我的自定义队列管理器中使用jQuery $('<img>').attr('src', ...) ,它限制了浏览器以1比1的方式加载图像,因此可以加载其他图像页面上可能显示的图像(例如灯箱中的图像)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM