When the img src value is empty, two requests are made. Some students may have encountered similar situations before. When there is a tag like <img src=''>, an extra request will be made to the page. Based on the analysis of an article, I guess that all tags that actively introduce external files will have this problem, such as embed, link, etc. Therefore, it was verified by experiment. The following are preliminary conclusions :
Note : 1. For the two requests of IE and Firefox, the pages they request are different. IE: The request is for the directory where the accessed file is located, such as the img tag, the second request is http://www.xxxx.cn/test/ FF, Safari, Chrome: The requested file is the one being accessed 2. For the embed tag, the above description is when type is not empty. When type is empty, FF requests 1, and IE responds differently depending on the type value. 3. If the above tags do not contain src="", no secondary request will occur. |
<<: This article will show you what Vite does to the browser's request
>>: Pure CSS3 to achieve mouse over button animation Part 2
Business scenario: The visitor's visit status...
This article describes MySQL multi-table query wi...
This article mainly introduces the pie chart data...
Drawing EffectsImplementation Code JavaScript var...
The usage format of the mysqladmin tool is: mysql...
Table of contents 1 Use of v-if and v-show 2. Dif...
Preface The this pointer in JS has always been a ...
Preface When developing WeChat applets, you often...
This article records the installation and configu...
Mixins provide distributed reusable functionality...
This article example shares the specific code of ...
Result:Implementation Code html <ul class=&quo...
Preface During the interview, many interviewers m...
<br />This problem does not exist in many sm...
Table of contents 1. Operation elements 1.1. Chan...