Interested in buying ad space on this blog?
You can, on BuySellAds.com

Do you train Kung Fu?
Or know someone who does?
Then check out KungFuPeople.com
Mobile version of this page|
You searched for keyword:slimmer |
found 0 photos and 7 blogs in and 0 blog comments in 0.00 seconds |
Blogs |
|
|
|
XHTML, HTML and CSS compressor - 6th of April 2004 Last week Fry-IT released CheckoutableTemplates which is a templating module add-on for Zope. It includes a module called #centercontent {
margin-left: 259px; margin-right:249px; voice-family: "\"}\""; voice-family: inherit; margin-left: 271px; margin-right:251px; } |
|
|
Optimize Plone.org with slimmer.py - 15th of February 2005 If you do a speed report on Plone.org you notice that the three biggest files it services are $ python slimmer.py --test http://plone.org/plone.css Took 0.016 seconds Bytes before: 29355 Bytes after: 20265 Bytes saved: 9090 (69.0% of original size) $ python slimmer.py --test http://plone.org/plone_javascripts.js Took 0.057 seconds Bytes before: 27251 Bytes after: 19974 Bytes saved: 7277 (73.0% of original size) $ python slimmer.py --test http://plone.org/ Took 0.029 seconds Bytes before: 37186 Bytes after: 26466 Bytes saved: 10720 (10K) (71.0% of original size) |
|
|
Smooth anchor scrolling Javascript - 17th of February 2006 Thanks to Seb Bacon's suggestion I've today looked at enabling smooth scrolling in Javascript for when you click on anchor links. See the result here if you're impatient |
|
|
Private functions in Javascript? - 29th of April 2006 In Python you indicate whether a function/method is private by naming it so that it starts with an _ underscore like this:
def _thisIsPrivate():
return 'a' def thisIsPublic(): return 'b' |
|
|
Slimmer with --hardcore - 6th of May 2006 Last week I wrote about a hope of slimming "private functions in Javascript" but realized that it was futile since it's not really possible. It led me to another idea where I rewrite all long-named functions within the code and relabel them at the end. The idea is that code that looks like this:
function parseSomething(z) {
... } function foo(x, y) { return parseSomething(x) + parseSomething(y); } foo(1,2); |

