Mobile app version of vmapp.org
Login or Join
BetL925

: What are reasons of latency for a HTTP request to load HTML? I would like to know what are reasons of latency for a HTTP request to load HTML part of a webpage. I think about: loading

@BetL925

Posted in: #Html #Http #Latency #Performance

I would like to know what are reasons of latency for a HTTP request to load HTML part of a webpage.

I think about:


loading webpage with proxy
not having a good web server (apache vs nginx)
having a bad configuration of web server
having a bad internet connexion (bad ping)


Any other ideas?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL925

2 Comments

Sorted by latest first Latest Oldest Best

 

@Nimeshi995

Here are some areas to consider in general, without going into detail:


Physical configuration/server specs:


RAM (the more the better)
CPU processor speed, and number of cores for multi-core applications
Drive speed and physical RAID to increase read/write speed (not software RAID used for mirrors and backups)
...

OS and server configuration: (This is specific to each web server, but some common ones follow):


Number of simultaneous connections
KeepAlive & KeepAliveTimeout (naming varies)
Caching
Memory allocation
Load balancing (reducing loads across multiple servers)
...

Network bandwidth and connection speed:


Run comparisons of sites with different web host companies/ISP's by analyzing ping and traceroutes from different locations (e.g., Pingdom Tools)
Consider the speed of the network connected to your server, and number of hops to your users
Consider if there's redundant Internet connections when bandwidth is exceeded
...

DNS health and lookup speed: (Often overlooked)


Run DNS checks to make sure your site can be reached (many are available online for free)
Test DNS response times
...

Optimize content: (Numerous techniques)


Compact HTML, CSS, JS, etc...
Compress all data sent to clients (e.g., using gzip)
Compress images and other media
...

Firewall:


Prevent scanning and attacks that require your server to work harder

Block leaching from other sites and servers:


Lock down application and script access to just your users and domains/hosts
Ban/blacklist abusive IP's
...

Exploits & Viruses: (Like desktop computers, servers are vulnerable to viruses and exploits that can slow it down)


Add a well-regarded virus scanner and schedule it during off-peak hours (so as not to slow it down during peak hours)
Keep an eye out for unknown processes in top, Task Manager, or similar
Watch for unknown files and scripts in directories that take up resources


Exclude robots and links that shouldn't be indexed

Use robots.txt directives
Add web server configuration rules and/or a security module
...

Reduce bot & spider crawl frequency

Use crawl-delay directives in sitemaps
Use search engine webmaster tools to set the crawl rate for your site (e.g., Google's Webmaster Tools "Configuration" settings)
...



This is by no means an exhaustive list, but some key areas to think about regarding website speed and latency issues. Search for answers on this site for more details on each individual area.

10% popularity Vote Up Vote Down


 

@Nimeshi995

Not having a good web server is pretty broad since you could have a good web server increasing latency for several reasons such as a peice of hardware that has defected such as a hard drive which is increasing seek time.

Also outside influences could be a factor, such as routing issues on networks that you do not have control off, as well as server-side attacks such as a DOS would most certainly increase delays in response time.

Finally bad configuration on the server could be increasing latency for one reason or more.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme