Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET: Why does it take forever to load a page after compiling?

Tags:

asp.net

Why does it take forever for ASP.NET to process a request the first time you try to access the site after compiling?

Maybe it's just me but the first time I visit a page after I've compiled my project, it takes about 20 seconds before I receive a response. Why is this?

like image 402
Deniz Dogan Avatar asked Nov 20 '25 02:11

Deniz Dogan


1 Answers

This is because the pages are not completely "compiled" until you run them for the first time.

See the following page regarding Understanding ASP.NET Dynamic Compilation

like image 126
Daniel Robinson Avatar answered Nov 22 '25 15:11

Daniel Robinson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!