This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
feat(tooltip): support loading content lazily #11483
Open
Description
Proposal
Have a way to lazily load md-tooltip bodies on hover
CodePen and steps to reproduce the issue:
CodePen Demo
If you look in the console, we have "test" logged a 1000 times on load.
Detailed Reproduction Steps:
- Create a large list of items with tooltips
- Check when the body of each tooltip is initialized
What is the expected behavior?
Tooltip only initialized when user hovers over element
What is the current behavior?
All tooltips are initialized at the start
What is the use-case or motivation for changing an existing behavior?
Large pages with thousands of elements that have complex and expensive tooltips.
Which versions of AngularJS, Material, OS, and browsers are affected?
- AngularJS: 1.6.4
- AngularJS Material: 1.1
- OS: Ubuntu
- Browsers: Chrome 69