johnnyg24 Posted May 17, 2016 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, Link to comment Share on other sites More sharing options...
Ingolme Posted May 17, 2016 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. Link to comment Share on other sites More sharing options...
johnnyg24 Posted May 17, 2016 Author 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? Link to comment Share on other sites More sharing options...
justsomeguy Posted May 17, 2016 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. Link to comment Share on other sites More sharing options...
johnnyg24 Posted May 17, 2016 Author 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? Link to comment Share on other sites More sharing options...
justsomeguy Posted May 17, 2016 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. Link to comment Share on other sites More sharing options...
johnnyg24 Posted May 18, 2016 Author 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? Link to comment Share on other sites More sharing options...
justsomeguy Posted May 18, 2016 Share Posted May 18, 2016 It will only compile once unless the source code changes. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now