Question d’entretien chez Trubates

What can you do to optimize JavaScript?

Réponse à la question d'entretien

Utilisateur anonyme

27 déc. 2011

A1: Combine all the separate .js files into one big .js file. A2: Remove unneeded code, whitespace, semicolons and comments. A3: Use a tool like YUI Compressor to remove extra whitespace. A4: gzip the .js file