1k DHTML API - Subsets (Minimal Variants)

On weight-critical projects, you don't want any code hanging around if you aren't using it. Clipping isn't used often. And visibility changes can be mimicked by moving elements on and off the screen. These scripts trim functionality from the original API to acheive their weightlessness. Not all the extensions and libraries will work with these scripts. I've arranged them in the following table for easy comparison of features (see the original documentation for an explaination of what the various functions do).

The filenames are ones I made up to keep the files straight. You can rename them to something shorter when you download them.

Script Weight
(bytes)
gE() Visibility Z-index
sZ()
Position Dimensions Clipping
sC()
Output
wH()
Win Mac
sE() hE() sX() sY() sW() sH() IE NS Moz Opera IE NS Moz Opera
No Clip 664 x x x x x x x x   x 4+ 4+ x x 4+ 4+ quirks x
No Write 582 x x x x x x x x     4+ 4+ x x 4+ 4+ quirks x
No Visibility 507 x     x x x x x     4+ 4+ x x 4+ 4+ quirks x
No Z-index 478 x       x x x x     4+ 4+ x x 4+ 4+ quirks x
mini-1k 200 x       x x         4+ 4+ x   4+ 4+ quirks  

Related to these scripts

Licensing

These scripts are released under a Creative Commons License.