Website first load too slow

2019-08-13 11:24发布

My websites (HTML and ASP.NET MVC) are hosted on a IIS 7.5 VPS their first load is always too slow, even requested from localhost, then navigation speed between the web sites pages is good.
please what to do to increase first load speed?

3条回答
狗以群分
2楼-- · 2019-08-13 11:43

First load tends to require a compilation of webpages (aspx or razor). You can precompile these. Also, if you have a database repository, often this gets initialized on first load, and depending on whats been done there, this also can be slow. ( but most often can be optimized )

查看更多
女痞
3楼-- · 2019-08-13 11:49

U can always set the Idle Time-out of the application pool to 0 which is default 20 minutes. It's under advanced settings. That way the first load won't be often.

查看更多
劳资没心,怎么记你
4楼-- · 2019-08-13 11:54

A would check the page load with Trace.


Yeah, Keith is right.

查看更多
登录 后发表回答