JavaScript
Friday, March 27th, 2009
I’ve been tweeting and posting to delicious about reflows and repaints, and it seemed time for a blog post. Opera lists repaint and reflow as one of the three main contributors to sluggish JavaScript, so it definitely seems worth a look.
Reflows are very expensive in terms of performance, and is one of the main causes of slow DOM scripts, especially on devices with low processing power, such as phones. In many cases, they are equivalent to laying out the entire page again.
How to avoid reflows or at least minimize their impact on performance?
- Change classes on the element you wish to style (as low in the dom tree as possible)
- Avoid setting multiple inline styles
- Apply animations to elements that are position fixed or absolute
- Trade smoothness for speed
- Avoid tables for layout
- Avoid JavaScript expressions in the CSS (IE only)
Tools
A few tools have made waves lately. Stoyan Stefanov and I have been looking for decent ways to measure reflows and repaints and there are a few tools which show promise (despite being very early alpha).
Has anyone else seen any cool tools for evaluating reflows?
Posted in CSS, Geek, General, JavaScript, Performance | 30 Comments »
Saturday, February 28th, 2009
My Object Oriented CSS grids and templates are open sourced on github. They have all the functionality of YUI grids plus some important features.
- Only 4kb, half the size of YUI grids. (I was totally happy when I checked the final size!)
- They allow infinite nesting and stacking.
- The only change required to use any of the objects is to place it in the HTML, there are no changes to other places in the DOM and no location dependent styling. Eases back-end development and makes it a lot easier to manage for newbies.
- Solution for sub-pixel rounding errors.
http://wiki.github.com/stubbornella/oocss
template.css and grids.css
…My prediction is that you’ll be writing complex layouts in less than 24 hours without adding a line to the CSS file.
Posted in Accessibility, CSS, Content, Design, Geek, Image, JavaScript, Latest Happenings, Performance, XHTML / HTML, event | 64 Comments »
Sunday, September 28th, 2008
Je vais parler (en francais! eek!) avec Eric Daspet de la performance des images pour le web a ParisWeb. Les inscriptions pour Paris Web 2008 sont officiellement ouvertes. Jusqu’au 15 octobre au soir, vous bénéficierez de tarifs réduits. Le conference sera lieu a Paris le 13-15 Novembre. J’attend vous voir bientot alors.
Voila le proposition
Voulez-vous améliorer la vitesse de vos pages web et réduire l’impact écologique et monétaire de votre hébergement ? Voulez-vous faire ceci avec peu de changement de code et en gardant une belle interface graphique ? Cette session va vous apprendre les 7 étapes pour mettre votre site web au régime. Comment perdre des poids que votre site a pris en rajoutant les dernières nouveautés. Et, encore plus important, comment ne pas reprendre ce poids !
Posted in Accessibility, Art, CSS, France, Geek, General, Image, JavaScript, Mobile, Performance, XHTML / HTML | 3 Comments »
Wednesday, August 13th, 2008

The YUI team released YUI3 for a sneak peek preview. The goals make me happy… especially goal 2.
- lighter (less K-weight on the wire and on the page for most uses)
- faster (fewer http requests, less code to write and compile, more efficient code)
- more consistent (common naming, event signatures, and widget APIs throughout the library)
- more powerful (do more with less implementation code)
- more securable (safer and easier to expose to multiple developers working in the same environment; easier to run under systems like Caja or ADsafe)
Posted in Accessibility, CSS, Geek, General, JavaScript, Performance, XHTML / HTML | 1 Comment »
Monday, July 28th, 2008
Well, not quite.
But I am pleased with the results. Who would have thought that the shy girl who almost failed a public speaking course at university would turn out to really enjoy presenting. Turns out I only like speaking about geeky things, preferably to geeks. A limitation perhaps, but far less limiting than nearly peeing myself with fear in college. No, not literally.
Anyway, check it out. It is jam packed with brand new performance ideas to make your site fly.
Posted in CSS, Content, Cookie, Geek, General, Image, JavaScript, Latest Happenings, Mobile, Performance, Server, XHTML / HTML | 3 Comments »
Wednesday, March 19th, 2008
The Exceptional Performance team at Yahoo! added 20 new performance rules and refined some of the original rules. I’m really excited about this; this performance goodness is just what developers need to accelerate the user experience even further.
- Flush the buffer early
- Use GET for AJAX requests
- Post-load components
- Preload components
- Reduce the number of DOM elements
- Split components across domains
- Minimize the number of iframes
- No 404s
- Reduce cookie size
- Use cookie-free domains for components
- Minimize DOM access
- Develop smart event handlers
- Choose <link> over @import
- Avoid filters
- Optimize images
- Optimize CSS sprites
- Don’t scale images in HTML
- Make favicon.ico small and cacheable
- Keep components under 25K [mobile]
- Pack components into a multipart document
Stay tuned, we’ve got more tricks up our sleeve.
Posted in CSS, Content, Cookie, Geek, General, Image, JavaScript, Mobile, Performance, Server, XHTML / HTML | No Comments »