Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

  1.  permalink
    The Bus Full of Hippies theme from the archives of Joshuaink as well as the recently applauded Web Designer Wall deliver some very nice and complex visuals and are clearly broadband material. The latter is also kind of heavy on the script side.

    How concerned are you about your load times as an end-user or as a designer/coder in general? While I'm not criticizing either of the designs I mentioned, I can't help but notice some similarities between the PC game industry at the late 90's and the way we design the web today. My point being, that faster processors, increased memory and storage space didn't necessarily result in faster or better games, just like broadband didn't mean faster load times as the sites got redesigned and bloated with images, video and javascript. The advances in technology tend to promote laziness.

    What would you consider to be the acceptable size for a javascript library (when one is required) or a set of background images and at which point would you sacrifice visuals or speed for the benefit of the other? The standards for writing semantically correct html are getting close to being understood well enough, but I have seen very little discussion about the best practices of delivering the semantic web fast enough.
    •  
      CommentAuthormringlein
    • CommentTimeAug 18th 2007
     permalink
    @Kari great question!!!!

    To some degree won't websites always be about knowing your demographic and pushing the limits to what you can get away with? The YouTube, or MTV.com for that matter, of today would never have survived in 1999 and the 1999 version of MTV.com would survive today but be less than acceptable and be easily trumped by a competitor -- the interest of its audience would be lost quickly.

    I think there needs to be clear and candid separation between designs like the Web Designer Wall and CSSBeauty for example. One is more of a design while the other is more of an art. I don't mean to criticize or diminish quality by implying that cssbeauty isn't "art". But art being more self expression and free artistic in nature than a beautifully designed site like cssbeauty. Web Designer Wall is whatever the author says it is -- it can take 100 years to load or less than a second -- it can have navigation on the top, bottom of running sideways -- it doesn't matter as long as the creator likes it. While more traditional sites need worry about load time, image size and knowing that "content is king".

    I think it depends on what your site is, who your audience is and what your sites objective is. I think web designer wall is for web designers -- who are most likely on faster machines with amazingly quick internet speeds. While the BBC for example can't make such assumptions and a 170k background image is probably a poor choice.

    I worry about it -- I also try and aspire to having the base template be no more than 100k with all images and complimentary files; that is sometimes easier said than done.
  2.  permalink
    I remember from '99-'2003-ish, alot of designers said total page load should not exceed 30KB, then later 50KB, now it's not unusual to be almost 100KB. Broadband is only getting more common, so I feel less guilt these days about more image-heavy concepts.

    Two things which help are to make sure CSS is used for lines, background colors and anything else which could be handled with a hex value, and to use Fireworks to compress larger jpgs as it's got a much better compression engine than PS. Also good to tile images in a compact manner like this, instead of unnecessarily like this.

    And like mringlein said, considering your audience is key.
    •  
      CommentAuthorkari.patila
    • CommentTimeAug 19th 2007 edited
     permalink
    I guess I like to take the Google approach when it comes to designing a user experience. On the other hand, it seems that worrying too much about things of that sort are causing some headaches as well.

    edit: Furthermore, nowadays I spend a lot of time researching subjects like, for instance, eyetracking. Take a look here, if you will.

    Recently I've been experimenting with a couple of designs for a site that will contain so little information that once you've read it, you can recite it in your sleep. So the question is: do you serve that information as fast as possible, or do you enhance it with something aesthetically pleasing to create a positive association with the site and the service. I opted for the latter.

    For those of you who think that a pretty package doesn't absolve you from having nothing inside I'll add that it did occur to me, too, and that I did eventually solve the problem with a clever web service. Having minimal amounts of textual content feels acceptable when it's 100% relevant and useful.

    edit: Do you think that at least some of the efforts spend on optimizing the layout, compressing your headers and what not are somewhat wasted when you have to load oodles of background graphics, or do you even concern yourself about the minutiae of optimizing code?
    • CommentAuthorlarrybn
    • CommentTimeAug 25th 2007
     permalink
    It all depends on what kind of site it is; what the user will get out of it. If the user just gets a pretty nice site for all of the time they have been waiting they will be annoyed. If the get a game or video they will feel like the have got something out of it. Speed is especially important with an e commerce site. There is no instant gratification. Users will not get a reward for them waiting for the page to load, they will merely give away some of their money in the hope that someone will send them a product in the post.
  3.  permalink

    total page load should not exceed 30KB, then later 50KB, now it's not unusual to be almost 100KB.

    I managed to keep my latest project at 40KB and it still looks reasonably good. I use a couple of caches for RSS feeds and news pulled from a database to keep the load times in check. Almost everything is compressed before being sent to the browser, not counting images, of course. YSlow for Firebug helped a lot, even though it has been criticized. The rating I got was 80, but I'm pretty sure I can get it closer to 90.

    There are some tradeoffs to consider with all this optimization, so does anyone know a decent way of benchmarking websites or PHP code? WebKit and Firebug are both all well and good, but I'd like to hear about some alternatives, if you have any.

  4.  permalink
    This is my technique:


    So far it's worked pretty well, but my knees are getting sore.
    Thankful People: mringlein, kari.patila
    •  
      CommentAuthorenvisean
    • CommentTimeAug 31st 2007
     permalink
    I agree with what everyone is saying in the above, it really depends on what you can get away with. We're still in a web world where people enjoy the full flash site with an insane amount of graphics and 30 second load times, and we also sit there swearing at our computer if google doesn't load within a fraction of a second. It's a bit hard, but I would say it's largely based on your demographic and website purpose. I know it's extremely hard to keep a site under 100kb now given that many AJAX frameworks will push that over quite a bit, not to mention if you want to be incorporating some nice use of graphics to employ that look that is unobtainable being 100% CSS driven.

    kari, I would love to see the design you did that was under 40kb and hear more about what you decided to give up or put in!
  5.  permalink

    kari, I would love to see the design you did that was under 40kb and hear more about what you decided to give up or put in!

    There will be a short testing period for the site starting later today. After that's over and the final revisions are made I'll post a link. I'm still working on a couple of IE tweaks that are driving me nuts.

    One of the reasons for the excessive optimization is our current hosting company, which is subpar to say the least.

  6.  permalink
    This question should be answered early on in the design phase. You should understand your target before you lay a single pixel on a blank PS canvas. It just so happens that designs intended to reach the widest audience, the ones needing most optimization, typically need the least amount of flair.

    So, the question is not ours to opine. It's you, the designer's, to answer. Really, it's your audience's to answer.
  7.  permalink

    Here's an exercise for anyone who's interested: point your Firefox/Firebug combo or WebKit towards a nice looking page you like to visit. I'll bet that the CSS, Javascript and HTML are being served without using gzip or zlib.

    For argument's sake, let's say that either kind of compression would cut the file sizes in half (actual results would most likely be a lot better). If the markup, scripts and styles add up to a 100KB that would either be 50KB less stuff to download or one more image to add to the bunch.

    I'm thinking that this should be done without having to figure out whether or not the audience would prefer a site that loads a bit faster. This should be done because it's easy and it makes sense.

    • CommentAuthorPettyRider
    • CommentTimeSep 2nd 2007 edited
     permalink
    I'm thinking that this should be done without having to figure out whether or not the audience would prefer a site that loads a bit faster. This should be done because it's easy and it makes sense.

    That's one of those steps you should always take. Yes, you're right. I'm thinking more about design decisions: Complex textured backgrounds, tricky AJAX interaction and JavaScript animation, etc. Each decision requires a small cost/benefit analysis with respect to the site's audience.
    • CommentAuthormariachi77
    • CommentTimeSep 11th 2007
     permalink
    Here are some great links to Steve Souder's (Yahoo! UI engineer) 14 rules for high performance websites:

    http://stevesouders.com/examples/rules.php

    Slides:
    http://www.scribd.com/doc/90201/14-tips-for-faster-web-apps

    Video:
    http://yuiblog.com/blog/2007/09/04/video-souders/
  8.  permalink

    Let's take a look at rule #4 - Gzip components. You can compress your HTML by adding this line at the beginning or your index.php file

    <?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>

    and that's about it. The CSS part is also quite easy. Make a new PHP file in the same directory with your CSS files. Let's call it gzip-css.php.

    <?php

    // gzip-css.php

    ob_start ("ob_gzhandler");

    header("Content-type: text/css; charset: UTF-8");

    header("Cache-Control: must-revalidate");

    $offset = 60 * 60 ;

    $ExpStr = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT";

    header($ExpStr);

    ?>

    Then add this to your .htaccess file:

    AddHandler application/x-httpd-php .css

    php_value auto_prepend_file gzip-css.php

    These two lines look for requests for CSS-files and put them through gzip-css.php, which will compress them. You should notice quite a drop in transfer sizes. Use either WebKit or Firebug with YSlow to compare the results.

    P.S. I'd credit these lines of code to someone else, if I could remember who they were.

Add your comments
    Username Password
  • Format comments as (Help)