When the src value of the img label of a non-IE browser is null, two request problems occur.

Source: Internet
Author: User
When the img src value is null, two requests

Some people have encountered similar situations before. When there is a tag similar to , an extra request will be made to the page,

According to the analysis in an article, I guess whether all tags that will actively introduce external files will have such problems, such as embed and link,

Therefore, it is verified by experiment.

The following is a preliminary conclusion:

Tag/request count/Browser

IE

FF, safari, chrome

 

Img

2

2

 

Embed

1

2

 

Background: url

1

2

 

Link

1

2

 

Input type = 'image'

2

2

 

Script

1

2

 

Bgsound

2

-

 

 

Note:

1. The two request pages of IE and firefox are different.
IE: the requested file is locatedDirectory,For example, when the img tag, 2 requests are http://www.xxxx.cn/test/

FF, safari, chrome: Requests the accessed file

2. For the embed label, the preceding description indicates that when the type is not empty and the type is null, the FF request 1 and IE are different based on the type value.

3. If the above label does not contain "src =" ", there will be no second request.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.