]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
docs: add warning about global foundation() performances
authorNicolas Coden <nicolas@ncoden.fr>
Sat, 26 May 2018 21:03:20 +0000 (23:03 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Sat, 26 May 2018 21:03:20 +0000 (23:03 +0200)
docs/pages/javascript.md

index 23b483c856c1042afabac1d2e1d61bacda2225de..17fb6ee6204d8f1b9c75ea1f6eb5b9762a1247e6 100644 (file)
@@ -149,6 +149,8 @@ $.ajax('assets/partials/kitten-carousel.html', function(data) {
 });
 ```
 
+Plugins that are already initialized will be ignored. However for performances reasons, we recommend calling `.foundation()` only on the DOM nodes that changed.
+
 ---
 
 ## Adding Content to Plugins