From 418ab8077f34a0e711d044af3a5326f86bedd8cb Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Sat, 26 May 2018 23:03:20 +0200 Subject: [PATCH] docs: add warning about global foundation() performances --- docs/pages/javascript.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/pages/javascript.md b/docs/pages/javascript.md index 23b483c85..17fb6ee62 100644 --- a/docs/pages/javascript.md +++ b/docs/pages/javascript.md @@ -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 -- 2.47.2