Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I optimize my website for slow data connections?
    primarykey
    data
    text
    <h2>The solutions here worked fine however they were quite labour intensive. To anyone looking to perform similar enhancements on old asp.net solutions I would highly recommend switching the project to MVC just to take advantage of the script and style bundling. .aspx files work as expected in MVC projects.</h2> <hr> <p>I'm about to start work on performing some performance enhancements for one of our products. Our users connect to the network using radio which is extremely slow. The main bottlenecks in the application are the network and the database. I am going to be focusing on reducing the network footprint of the application. </p> <p>I am going to start with a few "quick wins" before I get down to the nitty gritty of tearing apart UpdatePanels, removing unnecessary content and whatever else I can think of. Right now I have a few things that I think I'm ready to implement<br> These include</p> <ul> <li>Minifying and combine css <a href="http://helios.ca/2011/07/12/asp-net-mvc-merge-minify-javascript-on-the-fly/" rel="nofollow">Using This</a></li> <li>Minifying and combine js <a href="http://helios.ca/2011/07/12/asp-net-mvc-merge-minify-javascript-on-the-fly/" rel="nofollow">same as above</a></li> <li>Removing excess whitespace from html sent to client. <a href="http://omari-o.blogspot.com/2009/09/aspnet-white-space-cleaning-with-no.html" rel="nofollow">Using this</a></li> </ul> <p><strong>Edit : The assets minification and white space cleaning tools work quite well together.</strong></p> <p>However I have a few things that I'm not sure how I'll address.</p> <ol> <li><p>Some microsoft resources (<code>WebResource.axd?d=blahblah</code> and <code>ScriptResource.axd?d=blahblah</code>) are not minified. <a href="http://pastebin.com/jvWt2rPL" rel="nofollow">This</a> and <a href="http://pastebin.com/BMTZuzHe" rel="nofollow">This</a> and a few others depending on the page. Microsoft.Ajax is fine though. How can I manually minify these files if they aren't being minified automatically? Am I missing a setting somewhere? </p></li> <li><p>Is it possible to combine the microsoft resources into a single js file with my javascript?</p></li> <li><p>401 errors, In fiddler I can see that my first hit to the website always gives a 401 error it is immediately followed by the normal 200. Also other resources will randomly have a 401 on their first call as well. Is this some sort of IIS setting that needs to be configured to remove this unneeded call? </p></li> <li><p>Javascript inside aspx files. Unfortunately we have a lot of js inside our aspx files as well as a lot of javascript that gets rendered using <code>ScriptManager.RegisterStartupScript</code> in our code behinds. How would I go about minifying javascript within <code>&lt;script&gt;</code> tags in the aspx markup?</p></li> <li>Favicon, can this be diabled? If not what's the next best thing?</li> </ol> <p><strong>Update</strong></p> <ol> <li><p>Mads Kristensen's combiner works great. However I've found that there are issues with some pages that include 14+ axd references produce a 404.15 error (query string is too long, ie only bug) My solution for this was to gzip and base64 encode the query string. </p></li> <li><p>I've found that combining my js includes with the .axd files is a fruitless task as the .axd files are different for each page. Having my static js files seperate produces an extra service request but it will remain cached on the client instead of having the client redownload those scripts as a part of the combined js axd file.</p></li> <li><p>I enabled anonymous authentication. No more issues.</p></li> <li><p>No progress.</p></li> <li><p>I've found that putting favicon.ico at the root is necessary. I think this may be just because of the way my application has been designed though.</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload