source: spip-zone/_plugins_/foundation-4-spip/trunk/inclure/head-foundation-app.html @ 87131

Last change on this file since 87131 was 87131, checked in by p@…, 5 years ago

Rustine: Charger app.js dans le head via ajax, mettre en cache le fichier

File size: 631 bytes
Line 
1[(#REM) Inclusion de modernizr, car c'est toujours hyper pratique ]
2[<script src="(#CHEMIN{bower_components/modernizr/modernizr.js})"></script>]
3
4[(#REM) Inclusion de fastclick ]
5[<script src="(#CHEMIN{bower_components/fastclick/lib/fastclick.js})"></script>]
6
7[(#REM) Foundation JS ]
8[(#CONFIG{foundation/javascript}|oui)
9
10[<script src="(#CHEMIN{bower_components/foundation/js/foundation.min.js})"></script>]
11
12[(#REM) Rustine pour charger app.js automatiquement ]
13[<script type="text/javascript">
14  $.ajax({
15    type: "GET",
16    url: "(#CHEMIN{js/app.js}|texte_script)",
17    dataType: "script",
18    cache: true
19  });
20</script>]
21]
Note: See TracBrowser for help on using the repository browser.