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.

贡献者指南