Warum schneller die Seite zu laden, wenn wir Linien so:Ist die Platzierung von JS-Skripts in Mops- und Jadedateien von Bedeutung?
script(src="/Scripts/jquery.timeago.js")
am Ende unseres Tages und nicht in dem
Sprich:
//Jade file with JQuery
!!! 5
html(lang="en")
head
title Holamundo!
script(type='text/javascript', src='http://code.jquery.com/jquery-1.9.1.js')
body
h1#headTitle Hello, World
p#content This is an example of Jade.
script
$('#headTitle').click(function() {
$(this).hide();
});
$('#content').click(function() {
$(this).hide();
});