twbs/bootstrap

Expounding on "opt-in for performance reasons"

已關閉

#29,378 建立於 2019年9月6日

 (7 則留言) (10 個反應) (0 位負責人)MDX (78,904 個分叉)batch import
docshelp wantedjsv5v6

倉庫指標

星標
 (174,240 顆星)
PR 合併指標
 (平均合併 4天 15小時) (30 天內合併 99 個 PR)

描述

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.

貢獻者指南