johnnyg24 0 Posted May 17, 2016 Report Share Posted May 17, 2016 I'm in the process of converting my entire site from classic asp to asp.net. I've down loaded visual studios 2015 community addition and I'm trying to learn how to build an asp.net web site (razor v3) in VB from scratch. Please keep in mind I've used Dreamweaver 8 for the past 6 years so I know nothing about visual studios. I can hit the default.vbhtml web page from my browser but the first time I visit the page it can take 5-10 seconds to load. Each subsequent visit loads very quickly. Do I need to do anything with this website before just saving it to my server? Will these pages take this long for another visitor to see on there first visit? Sorry for what is probably a silly question but this almost an entirely new language to me. Thank you, Quote Link to post Share on other sites
Ingolme 1,021 Posted May 17, 2016 Report Share Posted May 17, 2016 That behavior makes it sound like you're using some really large images on the page. I don't have more information to go by, but a page loading slowly just the first time usually indicates that the client is downloading a large resource from your website (probably an image) and then loading it from the browser cache on all subsequent visits. Quote Link to post Share on other sites
johnnyg24 0 Posted May 17, 2016 Author Report Share Posted May 17, 2016 Thank you Foxy Mod, I am using the default page that VS creates as part of their website package so there are no images. I was wondering if I need to "Build Web Site" or "Publish Web App" first? Quote Link to post Share on other sites
justsomeguy 1,135 Posted May 17, 2016 Report Share Posted May 17, 2016 Yes, if the application is not compiled then the web server will compile it the first time someone accesses it. Quote Link to post Share on other sites
johnnyg24 0 Posted May 17, 2016 Author Report Share Posted May 17, 2016 Thank you, How do I compile the website, do I click on Build > Build Web Site? And what's the best way to tell if the webpage has been complied? Is there way for me see to a compiled version in a folder somewhere or a list of complied files? Quote Link to post Share on other sites
justsomeguy 1,135 Posted May 17, 2016 Report Share Posted May 17, 2016 Yes, I believe you just build it. I'm not sure where it saves the compiled files, but looking at them wouldn't tell you very much. Quote Link to post Share on other sites
johnnyg24 0 Posted May 18, 2016 Author Report Share Posted May 18, 2016 one last quaestion I promise, when a user run the page for the first time and it's compiled, will it remain complied for every subsequent vistor or will each uniqe visitior compile the page over again on their first visit? Quote Link to post Share on other sites
justsomeguy 1,135 Posted May 18, 2016 Report Share Posted May 18, 2016 It will only compile once unless the source code changes. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.