DHTML più veloce in dodici passi
E’ appena stato pubblicato su Msdn un articolo intitolato Faster DHTML in 12 Steps, con dodici utili consigli per scrivere codice DHTML più veloce sfruttando al massimo le potenzialità di DOM. Ovviamente, vista la fonte c’è da capire se i consigli siano validi solo per Internet Explorer o se possano effettivamente giovare anche in ambiente Firefox. Vale comunque la pena dargli una letta, ecco in breve l’indice:
- Batch Your DHTML Changes
- Talk to Your innerText
- Use the DOM to Add Individual Elements
- Expand Your Options in a SELECT Element
- Use the DOM to Update Tables
- Write Once, Use Many Times
- Don’t Be Too Dynamic with Your Properties
- Data Binding is Good for You
- Keep Your Expando Properties Off the Document
- Avoid switching classes and style rules
- Collapse a Text Range Before Finding the Parent
Add comment Luglio 20th, 2005