From: Nicolas Coden Date: Sat, 26 May 2018 21:03:20 +0000 (+0200) Subject: docs: add warning about global foundation() performances X-Git-Tag: v6.6.0~3^2~168^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=418ab8077f34a0e711d044af3a5326f86bedd8cb;p=thirdparty%2Ffoundation%2Ffoundation-sites.git docs: add warning about global foundation() performances --- 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