1. JScripts Gets Some Love

    body

    JScripts, my Ning app for storing JavaScript includes, has got some upgrades! At Johan's prodding I have added the following:

    • Include multiple JavaScripts with just one request to save time! It even has a form!
    • Tack ?minify on to a script to have JScripts compress it before transfer (more time saving!)
    • Tack ?callback=whoever on to have whoever() called after the script has loaded
    Creative Commons Licence © 2006-2008 Stephen Paul Weber. Some Rights Reserved.
    There is an RSS Feed for comments on this post.
    You can trackback from you own site.

    11 Comments

    1. Comment at 2007-01-30 17:17 by CANADA Johan Sundström
      body

      It's a lovely tool for anyone doing away with large load time overhead from loading (static) javascript from multiple locations, shaving off lots of needless HTTP roundtrips and queue buildup for fetching things off the same site.

      One could probably craft a comfy bookmarklet common mortals could use to run on a page whose scripts they wanted to bundle up to pre-populate an (url) upload form, too. (Probably better with that small manual step, to make it easy to remove dynamically generated scripts from the bundle, and to see which linked URLs that should be removed from the page when dropping in the final optimized result.

      It's a dream to blog and web page load time optimizers all over the place. (Just wait 'til they come back for similar help with their css. ;-)

      Might eventually make it support Transfer-Encoding:gzip too, by the way, where clients send Accept-Encoding:*gzip*.

    2. Comment at 2007-01-30 22:14 by CANADA Aditya
      body

      I'll switch to it if you promise it's faster than Googlepages :P

    3. Comment at 2007-01-31 11:33 by CANADA Singpolyma
      body

      @Aditya - with minify and all I'd bet it's faster. Google Pages is slow :P Especially for multiple includes.

    4. Comment at 2007-02-01 09:06 by CANADA Aditya
      body

      All righty then! I'll try and make a switch and see for a few days. But what happens when Ning is taken down for upgrades?

    5. Comment at 2007-02-01 09:29 by CANADA Singpolyma
      body

      @Adit - if Ning is down there's nothing I can do… but that hasn't happened in awhile, they are a deployed system now and try to do the work behind the scenes :)

    6. Comment at 2007-02-07 05:17 by CANADA chaitanya.gk
      body

      nice! good job…this is why im fan of your blog :p

    7. Comment at 2007-02-15 03:52 by CANADA Aditya
      body

      Quick question: How do you go about minifying a multiple script request?

    8. Comment at 2007-02-15 05:29 by CANADA Singpolyma
      body

      @Adit - you would request /ids/id+id+id?minify

      :)

    9. Comment at 2007-02-15 10:47 by CANADA Aditya
      body

      I tried. It gives an 'unterminated string lateral' error. You missed a quote somewhere? ;)

    10. Comment at 2007-03-04 00:33 by CANADA Aditya
      body

      You know what'll be a good way to extend this? Although I'm guessing you thought about it …

      Throw in an online editor for the files, so that one doesn't have to constantly keep uploading locally stored copies :P

    11. Comment at 2007-03-04 12:22 by CANADA Singpolyma
      body

      @Adit - done ;)

    Post a Comment

    You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Stephen Paul Weber