Appliquez le fichier JavaScript externe à votre code HTML en insérant une balise {{htmlelement("script")}} dans votre code HTML en référençant main.js.
Apply the external JavaScript file to your HTML by inserting a {{htmlelement("script")}} element into your HTML referencing main.js.
En outre, le fait de retarder le chargement des fichiers JavaScript jusqu'à l'interaction avec l'utilisateur réduira le temps de chargement initial.
Besides, delaying the loading of JavaScript files until user interaction will reduce initial load time.
Le fichier JavaScript renferme tout l'interactivité magique de notre carte.
Pour notre exemple, on veut vérifier tous les fichiers JavaScript à l'exception du gruntfile.js.
For instance, in our sample we want to check all the JavaScript files except gruntfile.js.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.