question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expounding on "opt-in for performance reasons"

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:3
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lacutahcommented, Mar 25, 2021

Follow up / tangential to this as a user of bootstrap:

  1. The “opt-in” requirement and guidance already seemed weird because adding the `data-[bs-]toggle='tooltip`` attribute to an element already is EXPLICIT that you want tool-tip popup behavior.
  2. Inconsistency with other controls - why the additional extra step of manual JavaScript initialization when default behavior it to self-initialize from data attributes.
0reactions
mdocommented, Jun 14, 2021

I agree with @XhmikosR on needing to re-evaluate this. @twbs/js-review Can any of you review and make a suggestion for how to better handle tooltips and popovers here without requiring extra work?

Read more comments on GitHub >

github_iconTop Results From Across the Web

12.1 Explain the Importance of Performance Measurement
Performance measurement is used to motivate managers to make decisions that ... The obvious choice is to simply give each employee a raise....
Read more >
- EXPANDING EDUCATIONAL OPPORTUNITY ... - GovInfo
Several reforms in the Every Student Succeeds Act help parents do what is best for their child's education by expanding school choice, reforms...
Read more >
Outperformance Option Definition - Investopedia
An outperformance option is a derivative where the payoff value is based on the relative performance of one asset compared with another.
Read more >
Learning to analyze and critically evaluate ideas, arguments ...
Angelo and Cross (7) offer many techniques for assessing critical thinking, problem solving, analysis, and related skills. Echoing and expanding on their ideas, ......
Read more >
Erving Goffman: The Presentation of Self in Everyday Life
Interaction is viewed as a "performance," shaped by environment and audience, constructed to provide others with "impressions" that are consonant with the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found