Speeding up xforms display

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Speeding up xforms display

Colin O'Brien
As we know, accessing an ops xforms site for the first time can be a
slow experience for the visitor and a big part of that is the time to
download all the excellent ng scripts.
So I tried a little exercise to see if I could speed things up any.

I replaced all the instances of multiple spaces with a single space.
That took the total size of ops/javascript/* from 166k to 129k, so
cutting 36k, or 22% of fat.
Most of it was in xforms.js and some in sarissa.js.

I have only tried it on my test system, so not sure what impact it will
have on live speed, but everything I use so far seems to still be
working.

Perhaps a similar action could be included in the build, so the cvs has
the pretty/intelligible version, but the installations can have the
leaner version (automatically ;-).

I tried some other things (like removing blank lines, and that got
another 2k out) but not sure how easy they would be to automate.
Perhaps someone else has other ideas on how to speed this up.

Thanks & regards
Colin




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Speeding up xforms display

Erik Bruchez
Administrator
Sounds like a good idea! There are also JavaScript compressors out
there, including one that comes with Dojo:

http://dojotoolkit.org/docs/compressor_system.html

I entered a bug for this:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=304620&group_id=168&atid=350207

No guarantee that we will do this anytime soon, but that's something to
keep in mind.

There may be also the option of gzip'ing those files with Apache.

-Erik

Colin O'Brien wrote:

> As we know, accessing an ops xforms site for the first time can be a
> slow experience for the visitor and a big part of that is the time to
> download all the excellent ng scripts.
> So I tried a little exercise to see if I could speed things up any.
>
> I replaced all the instances of multiple spaces with a single space.
> That took the total size of ops/javascript/* from 166k to 129k, so
> cutting 36k, or 22% of fat.
> Most of it was in xforms.js and some in sarissa.js.
>
> I have only tried it on my test system, so not sure what impact it will
> have on live speed, but everything I use so far seems to still be working.
>
> Perhaps a similar action could be included in the build, so the cvs has
> the pretty/intelligible version, but the installations can have the
> leaner version (automatically ;-).
>
> I tried some other things (like removing blank lines, and that got
> another 2k out) but not sure how easy they would be to automate.
> Perhaps someone else has other ideas on how to speed this up.
>
> Thanks & regards
> Colin
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws