[TYPO3] New Extension: PMK SlimBox (LightBox clone)

Sudara Williams sudara at web-crossing.com
Mon Apr 23 17:09:50 CEST 2007


Opinions and preferences aside, please realize that your statement is incorrect - Prototype changed a while back - it does not alter Object.prototype as you mention.

Some recent speed tests for many libraries can be found here, and really depend on what you are doing with the libraries: http://andrewdupont.net/test/double-dollar/

Are you a musician? Cause we could start in on Logic.js vs. Protools.js if you like too ;)

sudara


-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de on behalf of Peter Klein
Sent: Thu 4/19/2007 3:00 PM
To: typo3-english at lists.netfielders.de
Subject: Re: [TYPO3] New Extension: PMK SlimBox (LightBox clone)
 
Im not saying that Protools.js is bad, it's just not as 
small/optimized/fast/compatible as it's competitions, like Mootools and 
JQuery.

Mootools is based on Dean Edwards Base.js
http://dean.edwards.name/weblog/2006/03/base/

Which doesn't change Object.prototype as the Prototype library does.
Explanation of why changing Object.prototype can be found here:
http://erik.eae.net/archives/2005/06/06/22.13.54/

And some of the functions in Mootools originates from the Prototype.js.

The Mootools code is much more Object Oriented, and you can do the same 
things, as you can do with Prototype.js, but with much less code.

A good example is the original LightBox v2 script based on Prototype.js, 
which is 22Kb in size..
Where the size of the Mootools based clone Slimbox, is only 5.5Kb.


-- 
Peter Klein/Umloud Untd

"Sudara Williams" <sudara at web-crossing.com> skrev i en meddelelse 
news:mailman.155175.1176911117.21067.typo3-english at lists.netfielders.de...
I don't like to go off topic or reply to rants very often, but I need to 
back up my good friend Prototype ;)

Prototype is much more of a framework than a library. It's an amazing and 
ground-breaking framework and provided inspiration for the smaller libraries 
such as mootools.

If you are hyper concerned about initial load time, don't use it in the 
front end. Period. It's worth it in the BE, as it provides a huge net 
savings of load time.

For the development of rich internet applications like Typo3, the initial 
load time is well worth the experience it provides the end user as well as 
the power, flexibility and time-saving it provides the programmers (not to 
mention that it's object orientated feel).

For me programming with Prototype is a blessing, and I'm glad the core has 
(finally) adopted it. Already we have some amazing features and time-saving 
features in the BE developed with it, with much more to come!

sudara
(I'm biased, as I'm about to release an extension that allows folks to 
choose content elements in the backend and apply scriptaculous effects to 
them!)





-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de on behalf of Peter Klein
Sent: Wed 4/18/2007 5:31 PM
To: typo3-english at lists.netfielders.de
Subject: Re: [TYPO3] New Extension: PMK SlimBox (LightBox clone)


"Martin Kutschker" <Martin.Kutschker at n0spam-blackbox.net> wrote in message
news:mailman.1.1176883642.7144.typo3-english at lists.netfielders.de...

> Interestingly Lightbox v2 (and PMK SlimBox) uses the rel attribute and has
> the image as href of the anchor. And it uses Prototype/scriptaculuos which
> are shipped with 4.1.
>
> So I think it's great that PMK SlimBox doesn't use an XCLASS. But I think
> that it's possible to use a similar TS for the original Lightbox v2.
>

The same method can easily be used for the original LightBox v2, but unless
you really need Prototype/scriptaculuos, I se no reason why to use that.

Prototype.js (46Kb) + scriptaculuos.js (2.1Kb) + effects.js (31Kb) +
Lightbox v2 (22Kb) = 101.1Kb

Mootools.js (16.6Kb) + Slimbox_ex.js  (5.5Kb) = 22.1Kb

 I fail to understand why TYPO3 has chosen to ship that bloated Prototype
library with v4.1, as there's several (better and smaller) JS libraries
around, like JQuery and Mootools.

--
Peter Klein / Umloud Untd.


_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english





_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english





More information about the TYPO3-english mailing list