web-optimization

Mixing Secure and Non-Secure Content on Web Pages - Is it a good idea?

I'm trying to come up with ways to speed up my secure web site. Because there are a lot of CSS images that need to be loaded, it can slow down the site since secure resources are not cached to disk by the browser and must be retrieved more often than they really need to. One thing I was considering is perhaps moving style-based images a...

JavaScript being loaded asynchronously in Firefox 3 (according to Firebug)?

I'm trying to profile the performance of a web site that I'm fairly confident is being slowed down by the loading of JavaScript files on the page. The same JavaScript files are included several times on the page, and <script /> tags are scattered throughout the page instead of being included at the bottom. As I suspected, when looking ...

What is the best way to optimize a Windows Server 2008 box running IIS7 to serve only static files?

I would like to have our web applications pull static content (css, js, images) from a static file server running Windows Server 2008 and IIS7. What sort of optimizations would you make to the server for this single purpose? (Machine.config changes? Web.config changes? Special IIS7 setup or modules? What?) ...

Recommended file sizes for web

I am doing a web performance optimization using YSlow and Page Speed recomendations but when it comes to file sizes neither says anything about it. Does anybody knows where I can get some recomendation of the max size of some file types?? For example images shouldn't be greater than XXX KB or something like that. But i need reliable sou...

Setting Far Future Expires Header In Code - ASP.NET

Is there a way that I can programmatically set an Expires Header in code with ASP.NET? Specifically I need to set it on an entire folder and all sub-folders, and the folder contains only static files (JavaSciprt, CSS, Images etc.) and not aspx files, so I can't just add some code to an aspx code-behind page_load. I can normally set this...

Google Web Optimizer -- How long until winning combination?

I've had an A/B Test running in Google Web Optimizer for six weeks now, and there's still no end in sight. Google is still saying: "We have not gathered enough data yet to show any significant results. When we collect more data we should be able to show you a winning combination." Is there any way of telling how close Google is to makin...

Using 3-digit color codes rather than 6-digit color codes in CSS

I recently went through my CSS file and switch all my 6-digit hexadecimal codes to simple 3-digit codes (for example, my #FDFEFF got shortened to #FFF). It renders pretty much the exact same color as before, it seems to me that the in between parts are fairly useless and removing them saved me an entire 300 bytes in my CSS file. Does it...

Google Web Optimizer (A/B Testing) Why no clear winner?

I've previously asked how long it takes for a winning combination to appear on Google's Web Optimizer, but now I have another weird problem during an A/B test: For the past two days has Google announced that there was a "High Confidence Winner" that had a 98.5% chance of beating the original variation by 27.4%. Great! I decided to l...

Preload javascript and css components in landing page

Hello, I want to preload a JS file and a CSS file from the landing page to optimize the main site load, after de conversion in the landing. I was looking for information about this and finally tried to get this done using: var xhr = new XMLHttpRequest(); xhr.open('GET', 'jsUrl'); xhr.send(''); xhr = new XMLHttpRequest()...

Is this page caching system reasonable?

I am working on a webbased system where users will click through a lot of pages. Because they will often return to specific pages (for example, an overview of books), I would like to implement some caching mechanism to speed things up. Before I show the contents of the user, I would store an MD5 checksum of the content in a database, to...

Adobe Reader Broswer Plug-in - Issues with files greater than 2mb

Hi All, I was wondering if anyone knew of any limitations with the Adobe Reader Browser plug-in. Currently I am experiencing issues when a visitor to my website is trying to open a PDF that is greater than 2mb in file size. I have thought about how to go about optimising my pdf's even more than they currently are but an struggling to f...