In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article is about how to solve the problem of two requests when the value of the src attribute of the img tag is empty. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
2 requests when the img SRC value is empty
Some students should have encountered a similar situation before, when there is a similar situation such as
One more request will be made to the page when the tag of
According to the analysis of an article, I guess that all tags that actively introduce external files will have such problems, such as embed, link, etc.
So it is verified by the way of experiment.
The following are the preliminary conclusions:
Tag / number of requests / browser IEFF,safari,chromeImg22Embed12Background: url12Link12Input type='image'22Script12bgsound2-
Note:
1. For the two requests of IE and firefox, the requested page is different.
IE: request the directory where the accessed file is located, such as the img tag, and the second request is http://www.xxxx.cn/test/.
FF,safari,chrome: the file being accessed is requested
two。 For embed tags, the situation described above is that when type is not empty and type is empty, FF requests 1, and IE varies according to the type value.
3. If src= "" is not included in the above tag, a second request will not occur.
Thank you for reading! This is the end of this article on "how to solve the problem of 2 requests when the src attribute value of the img tag is empty". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 295
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.