twbs/bootstrap

Expounding on "opt-in for performance reasons"

Geschlossen

#29.378 geöffnet am 06.09.2019

 (7 Kommentare) (10 Reaktionen) (0 zugewiesene Personen)MDX (78.904 Forks)batch import
docshelp wantedjsv5v6

Repository-Metriken

Stars
 (174.240 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 4T 15h) (99 gemergte PRs in 30 T)

Beschreibung

In the documentation for both Tooltips and Popovers is the caveat: "opt-in for performance reasons, so you must initialize them yourself." But I'm having trouble finding a detailed explanation of "performance reasons." The caveat is at least 6 years old, which makes me wonder if it's still true.

Also, many people miss this caveat when reading the documentation, for example #24985 and #15458. So it would be great if Tooltips and Popovers could actually be automatically initialized in a performant way. That might also pair nicely with using MutationObserver to automatically remove Tooltips in v5.

Contributor Guide