Initial page load time

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
7/25/2011 3:38:58 AM
Gravatar
Total Posts 19

Initial page load time

Morning,

I'm using the mojoportal-core.sln in an effort to reduce build/development time.

When I make a small code change to the feature I am developing and want to test it [F5 or ctrl F5] I end having to stare at a blank browser window for up to a minute before the page loads.  Any idea what is causing the longish delay between the project compiling and the default page loading in the browser?

It's making development a little more time consuming than I'd like.

Thanks.

 

7/25/2011 7:58:54 AM
Gravatar
Total Posts 18439

Re: Initial page load time

Hi,

It sounds like you are unnecessarily running it in the VS debugger, if you mean you are using F5 or the play button in VS after every change. Only use the debugger if you need to step through the code, once you have first built the entire solution just right click the Web/Default.aspx page and choose view in browser, it will load the VS web server but without launching the debugger which is a much slower process. Then when you make a change in your custom feature just build your feature (not the whole solution), then refresh the web page. If something isn't working right then you can set break point sin the code and use the debugger to step through the code, but other than that I would stay out of the debugger.

Of course VS is a resource hog and a faster machine makes all the difference in the world.

Hope that helps,

Joe

7/26/2011 3:57:03 AM
Gravatar
Total Posts 19

Re: Initial page load time

Thanks for the reply Joe - I'm just building my feature project and refreshing the web page but I still have quite a wait.

When I build my feature project I'm using build actions to copy the relevant code to to mojoPortal.web and that is the web application I'm running - I'm assuming this is correct.

Is there a way that I can run my feature project [web application] independently, I've tried but I always get a load of errors?

Thanks.

7/26/2011 6:07:32 AM
Gravatar
Total Posts 18439

Re: Initial page load time

It is not possible to run your feature independent of mojoPortal.

There is a setting you can make on the <compilation element in Web.config that may help speed things up a little. I have it in comments in the Web.config file, in my testing it does work but it occasionally can cause problems or unexpected results, others have also reported good success in making development faster but because there are issues sometimes I don't use it myself since I have a fast machine. But you may find it helpful.

Best,

Joe

7/26/2011 9:25:31 AM
Gravatar
Total Posts 19

Re: Initial page load time

Wow, what a difference.

Optimizing the compilation has done the trick.

Couldn't get my employer to get a new machine as I already have one!

Thanks very much.

You must sign in to post in the forums. This thread is closed to new posts.