- Jakarta EE Cookbook
- Elder Moraes
- 90字
- 2021-06-24 16:12:40
How it works...
We use the PushBuilder object to send an image to the client before it is requested by the img src tag. In other words, the browser doesn't need to do another request (what it usually does with img src) to have an image available for rendering.
It might seem as if it doesn't make too much difference for a single image, but it would with dozens, hundreds, or thousands of images. There's less traffic for your client and from your server. That's better performance for all!
推薦閱讀
- The Complete Rust Programming Reference Guide
- Mastering Visual Studio 2017
- 看透JavaScript:原理、方法與實踐
- C和C++游戲趣味編程
- 微信小程序開發(fā)與實戰(zhàn)(微課版)
- Scala for Machine Learning(Second Edition)
- Java Web開發(fā)實例大全(基礎卷) (軟件工程師開發(fā)大系)
- Xamarin Blueprints
- Scala Functional Programming Patterns
- 物聯(lián)網(wǎng)系統(tǒng)架構設計與邊緣計算(原書第2版)
- 3ds Max 2018從入門到精通
- JavaWeb從入門到精通(視頻實戰(zhàn)版)
- Flutter之旅
- Leaflet.js Essentials
- VC++ 2008專題應用程序開發(fā)實例精講