Later, in the same page as well as other pages, you would find several resources such as images, Javascript, CSS files accessed from one of the above as base URLs. So, let’s try and explore some of the benefits from this approach.
DNS-prefetch technique attempts to resolve domain names using one’s computer’s built-in DNS resolution mechanism. Once a domain name gets resolved, further attempts to access any resources from that domain takes no time for DNS resolution. Thus, this does speed up the overall page loading time due to no time taken for DNS resolution. The reason why Amazon.com pages rely on DNS-prefetch is multiple domain names (as mentioned above) from which different web page resources such as images/JS/CSS are accessed. When the browser encounters these URLs, it first checks its cache and then, lacking a cached copy, resolves the domain to the associated IP address through a request from the DNS server. These requests happen in the background so as to not block the rendering of the page. Moreover, since all this takes place in parallel with the user’s reading of the page, it places only a negligible load on CPU and network resources.Although, browser does the activity of prefetch the URL, one forces the domain name pre-resolve by making use of attribute rel=”dns-prefetch” with link element. In above example, browser pre-resolves following domain name:
The combination of Retrieval-Augmented Generation (RAG) and powerful language models enables the development of sophisticated…
Have you ever wondered how to use OpenAI APIs to create custom chatbots? With advancements…
When building a Retrieval-Augmented Generation (RAG) application powered by Large Language Models (LLMs), which combine…
Last updated: 25th Jan, 2025 Have you ever wondered how to seamlessly integrate the vast…
Artificial Intelligence (AI) agents have started becoming an integral part of our lives. Imagine asking…
In the ever-evolving landscape of agentic AI workflows and applications, understanding and leveraging design patterns…
View Comments
Hi there! Quick question that's completely off topic.
Do you know how to make your site mobile friendly?
My website looks weird when viewing from my apple iphone.
I'm trying to find a theme or plugin that might be able to
resolve this issue. If you have any suggestions, please share.
Appreciate it!