| Register
Friday, May 09, 2008   

Getting Sloppy With Your Connection

Created By  Benjamin Mace, at  9/7/2005 - 7 comments.

Click to view this author's website.

This summer I started a new job as the Senior Interactive Designer at AOL. AOL is parallel with dial up users and now, more than ever, a large part of the projects I develop focus around optimization. So I thought it would be a good idea to share some techniques for optimization that I have learned over the last few years that many people still aren't familiar with. This article will be the first in a series on overall file optimization and how you as a developer can create smaller files and test them before deployment on the web. And since I'm wrapping up a project right now I thought I'd start with testing.

Optimization testing usually involves different bandwidth connections as well as platforms to see how your files perform in the real world. It just so happened that as I began doing this, a coworker of mine pointed me to a small, free Java application he found called Sloppy. He sent it to me as another cool little thing he had found in his daily surfing thinking nothing more of it than that. Once I saw what it did I just about fell out of my chair. What seems so simple has never been readily available to my knowledge and has been something I could have been using for the past few years.

Sloppy constricts your pipe in a nut shell. It slows your connection down and emulates a connection speed of your choice. To a Flash developer (specifically one who works at AOL) this is a great tool for checking out how content will be delivered over different connection speeds. Preloaders, video buffering, loading XML and connecting with XML sockets can all be tested from a single machine and a single connection.

Sloppy was created by Richard Dallaway in 2000 and has evolved since. Richard was working as a server-side developer for a magazine dealing with heavy graphics at the time. "Sloppy came about because I wanted a manager to be able to fire up something, look at the site and understand how the site would work from a dial-up
user." By later developing an easy to use GUI, non-geek types wouldn't have to worry about messing with modems or web browser settings to see the effects of slower connections.

I was surprised that after so many years developing with Flash I hadn't seen a forum post, a tutorial or a blog with an entry about an application doing what Sloppy does so well. Sloppy requires Java and a 1kb download containing the interface for the app. Once launched, 3 easy steps are needed to use Sloppy. All you have to do is enter a URL to constrain, a connection speed to replicate and to hit "Go". Best of all, it's free! The FAQ states: Sloppy doesn't work as a real HTTP proxy so don't configure your browser to use it. Sloppy doesn't look at the HTML that comes back to your browser. If the HTML contains absolute links, and you follow them, you will be browsing without sloppy. You see this when it happens because (a) the site will load very quickly and (b) the address bar in your browser will change from "http://localhost:7563" to something else.

Sloppy is available for all major platforms and requires no installation outside of Java. Richard's site starts with a quote from PC Pro Magazine stating "Sloppy belongs in the 'essentials' toolbox of every web developer". I couldn't agree more, especially for a Flash developer's toolbox.

Richard Dallaway is currently a software engineer, living in Brighton (UK) and one of the founders of www.spiralarm.com which is all about mobile technologies.

Need Professional Help For Your ActionScript Project?
ActionScript.com Consulting Services provide top quality professional ActionScript consulting to businesses around the globe. If you have a professional project in need to world-class talent, tell us about your project by requesting a quote today.

Reader Comments

  1. Anthony Graddy  Replied:
    ( 9/7/2005 At 7:55 AM)

    Wow! That's great! I wish I would have learned about that a couple months ago. I was reworking a project with Flash that had already been created that would dynamically download large images. The Flash project worked great on a fast connection, but I had to make some tweaks to get it to work correctly (pause to wait for the download to finish before going to the next image). It would have been real nice to have this tool then. Oh well, I'm sure I will find a good use for it in the future. Thanks.

  2. maurizio  Replied:
    ( 9/7/2005 At 11:21 AM)

    Charles is another choice: HTPP proxy, HTTP monitor, Reverse proxy. Developed by Karl von Randow at XK72 Ltd, it's shareware - $50 for a single licence - and obviously Java based. You can download an evaluation copy.
    But Sloppy is great because it's very easy to use and it's free!
    Thanks for having pointed it out!

  3. Mads Buch Stage  Replied:
    ( 9/7/2005 At 5:24 PM)

    Because of the nature of Sloppy, it does not handle sites which are spread over more than 1 domain very well.
    We for example have a particular domain for all images and one for the page itself, which means that Sloppy will only slow down the page itself and not the images which are loaded from other sources.
    Other than that it is nice, clean and simple :-)

  4. Slade  Replied:
    ( 9/8/2005 At 4:54 AM)

    Oh yeah... this is def something I will be sing o my next couple of projects.

  5. Mike  Replied:
    ( 10/4/2005 At 11:20 PM)

    Sweet!

  6. 5566  Replied:
    ( 12/15/2005 At 1:44 PM)

    There's another software called "web speed simulator", quite good. you can use it as a http server, :)
    http://www.xat.com/wo/

  7. Michael Dann  Replied:
    ( 1/15/2008 At 8:40 AM)

    You can do this from within flash though using the Bandwidth Profiler and Simulate Download tools when you are testing a swf. But I can see the use of this, especially if you have other items on a webpage besides the swf.

Login to post your comments. If you do not have an account with us please Register.
Copyright 2005 by ActionScript, Inc.   |  Privacy Statement  |  Terms Of Use  |  ActionScript Client Extranet