Please open the test page in a mainstream browser and view the http request in Fiddler. 1. Hide the image 2. Repeat images 3. Repeating Background 4. Background of non-existent elements 5. Hide the background of an element 6. Multiple Backgrounds 7. Hover background loading 8. Images in innerHTML in JS 9. Image preloading Copy code The code is as follows:<script type="text/javascript"> new Image().src = '1.jpg'; new Image().src = '2.jpg';</script> In an environment without JS support, you can use hidden elements to preload: <img src="1.jpg" style="visibility: hidden; height: 0; width: 0" />Test: test_9.html Finally, the summary 1. Opera does not generate requests for hidden images and backgrounds of hidden elements. Extra 1. When using Fiddler to monitor Opera, if it is a local server, you need to check the local server in Opera's proxy server settings. 2. Another foolproof way to check the number of HTTP requests is to directly check the Apache access.log file. 3. My Firefox generates duplicate requests for repeated images and repeated backgrounds. Disabled all extensions, the problem still exists. If anyone knows the details, please let me know. |
<<: A brief analysis of adding listener events when value changes in html input
>>: Uniapp implements DingTalk scan code login sample code
IE gave us a headache in the early stages of deve...
A registration page template implemented with HTM...
01. Command Overview The tr command can replace, ...
Absolute positioning method: (1) Set the parent e...
Method 1: INSERT INTO t1(field1,field2) VALUE(v00...
Table of contents What is a partition table Parti...
Table of contents Docker custom network 1. Introd...
I recently upgraded a test server operating syste...
1. Official Introduction grep is a commonly used ...
1. Go to the official website to download the jdk...
Table of contents 1. Overview 2. Attributes 1. Ma...
Table of contents 1. Download 2. Deployment 3. Ng...
Dimensionality reduction of two-dimensional array...
Adding the attribute selected = "selected&quo...
Table of contents Prototype chain We can implemen...