When using relative paths and absolute paths for image paths in web page creation, will the efficiency (opening time) be the same when opening the web page? Example: Suppose a webpage URL is: www.abc.com/a.htm. Is the efficiency of opening the webpage using www.abc.com/images/1.jpg and images/1.jpg the same as the image path in this webpage?
Reply to the discussion (solution)
This impact can be ignored. Besides, you have to add domain names to all paths. It is not easy to test locally and will not be easy to maintain in the future.
There are many pictures in the webpage, and only absolute paths can be used.
The client browser first tries to download the page and obtain the html.
Then parse the html, and then request the corresponding resources based on the content of the html.
Parsing the tag image path information is the job of the client browser. The speed depends on the client computer. This is the basic job of the browser. I believe that all browser manufacturers have done a good job in this area. Optimize it.
Using relative paths can reduce the page size, thereby reducing page download network traffic... However... this time should be ignored.
Just add /images/1.jpg directly in front of the folder. There is no need to add the domain name
I want to know if there are multiple image paths in the webpage, use www.abc. Will com/images/*.jpg repeatedly parse the domain name www.abc.com every time?

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

Atom editor mac version download
The most popular open source editor

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Zend Studio 13.0.1
Powerful PHP integrated development environment

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft