3Answers
  • 4
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

serving files via subdomain

does serving files like images via subdomain speed up loading speed. i read somewhere that static files like images, java script served via cookieless domain does mean something regarding website speed.

The HTTP/1.1 specs recommends that browsers only download two media items per domain in parallel, and for the most part browser makers are consistent with this standard. The media can consist of any of the following: html, css, images, javascript, flash, etc. Multiple domains can increase the number of synchronous downloads but it should probably limited to 2-4 domains.

There are many other aspects that are related to page speed that can solve different problems. If your problem is high latency using a CDN might be more helpful. Expires or a Cache-Control Header is good for content that doesn't change often.

I'll second Warner's suggestion of Yahoo's Best Practices for Speeding Up Your Web Sites. Install Firebug and Yslow and figure out exactly what your problem is? How to user firebug.

  • 1
Reply Report

Only a little, I'd test it or only have it be one of many steps as I'd think the impact would be minimal. The idea is that the cookie will be sent for every request even though it's unnecessary for static content. Check out this document.

  • 0
Reply Report

It may or may not help speed up your site. That's going to depend on a lot of factors.

However, it does open up a lot more flexibility for improving your performance. For instance, serving static data from another domain allows you to turn off cookies for that domain. It also allows you to trim other headers. It allows very generous site-wide cache expiration values. Etc, etc.

So while simply flipping the serve-from-subdomain bit will not necessarily offer a performance boost, it does open the door for some significant wins.

  • 0
Reply Report

Trending Tags