I'm trying to improve the performance of my site. If I replace the domain names of static resources such as images, styles, etc. with corresponding IP address, would I gain performance improvement? If so, are there any down sides to this approach?
Minimize DNS Lookup?
1.9k Views Asked by StackOverflowNewbie At
2
There are 2 best solutions below
0
MarkR
On
If you find that DNS is causing real delays for actual users in the field, you should change your DNS provider.
Your authoritative DNS provider should at least be using anycast to serve the requests from the same contintent as the end-user.
Don't even think about running authoritative DNS in-house. Outsource it every time (NB: Run your own resolvers for your infrastructure, if that makes sense; users' browsers won't be using those).
Related Questions in PERFORMANCE
- Upsert huge amount of data by EFCore.BulkExtensions
- How can I resolve this error and work smoothly in deep learning?
- Efficiently processing many small elements of a collection concurrently in Java
- Theme Preloader for speed optimization in WordPress
- I need help to understand the time wich my simple ''hello world'' is taking to execute
- Non-blocking state update
- Do conditional checks cause bottlenecks in Javascript?
- Performance of sketch drastically decreases outside of the P5 Web Editor
- sample query for review for improvement on big query
- Is there an indexing strategy in Postgres which will operate effectively for JOINs with ORs
- Performance difference between two JavaScript code snippets for comparing arrays of strings
- C++ : Is there an objective universal way to compare the speed of iterative algorithms?
- How to configure api http request with load testing
- the difference in terms of performance two types of update in opensearch
- Sveltekit : really long to send the first page and intense CPU computation
Related Questions in DNS
- AWS Dns record A not navigate to elb
- I created a domain name from cloudflare, and Hoisted my static site hosted in google firebase, error in adding custom domain in firebase
- I am the domain admin, newbie, how do I connect youtube.com on my domain?
- The problem with raising the DNS server on Ubuntu 20.04 - bind9
- I registered a service in eureka which is resolving through java code. But it is not able to resolve its name when hitting through chrome or postman
- Assigned A record for Subdomain in Cloud DNS to Compute Engine VM instance but not propagated/resolved yet
- Why Bind9 responds with latency for RPZ rule?
- Create aws certification for domain
- Make Bind DNS server to request only root DNS servers of IANA website
- Domain Still Redirecting Despite Transferring Out of Godaddy
- Set up MX records in apache/Ubuntu to point to external mail server
- Changing AWS registred domain back to AWS name servers
- Docker networking forwarding failed
- Can access IP address of domain via mobile but not wifi
- CURL got Could not resolve host: my subdomain
Related Questions in YSLOW
- Why prestashop 1.7 based site is slow?
- Google Ads slow my site loading ( Mobile view)
- Testing using gtmetrix.com in YSLOW shows far-future expiration error
- Use cookie-free domains in Opencart - YSlow recommendation
- Serve resources from a consistent URL + "?" at end of URL
- YSlow not working for newest chrome version
- install yslow for chrome 67 giving invalid manifest
- Why YSlow is not detecting my cookie-free domains?
- Gtmetrix : Add Expires headers on my .htaccess, Apache Server ,, here are the results showing the issue and my .htaccess file configuration
- How to combine images using CSS sprites
- How to solve the serve static content from a cookieless domain in prestashop 1.5?
- Angular2 Implementing Performance Suggestion By YSlow
- Compression Filter on MVC Page is not working
- How to maintain good PageSpeed Rank with external services
- Add Expire headers in Asp.net
Related Questions in PAGESPEED
- how to remove unused js of a page with JQuery?
- Google Tag Manager seems to slow down website (according to PageSpeed)
- Why PageSpeed Insights is not updating/changing my webpage Discover what your real users are experiencing?
- Defer in script tag not work as script evaluates before HTML is parsed
- How to set specific width and height of a div element when media queries are present in css file?
- ReferenceError: tdbMenu is not defined at HTMLDocument.<anonymous>
- Page speed insight shows FID & INP not applicable in desktop & mobile
- How to eliminate "Avoid Large Layout Shifts" for the below code?
- Error! Please ensure you keep the browser window in the foreground during the load and try again. (NO_FCP)
- Slow pagespeed render delay
- How to further mitigate bad web vitals LCP results?
- How to optimize largest contentful paint time of responsive image that fills the whole screen
- How to improve my First Contentful Paint (FCP) and Largest Contentful Paint (LCP)
- script-src missing according to Google Page Speed although it's in the .htaccess
- WordPress add_action('wp_head'... not working
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You'd gain a small improvement in first time DNS lookup performance but you lose the flexibility that DNS provides: change a host IP without having to change all of the static references to the host, DNS based load balancing, etc. A well designed CDN strategy will serve you much better. Work on balancing concurrent request vs DNS lookups, depending on the number of static resources per page, that'll be between two and four DNS hostnames.