After talking to @phuedx, now that IntersectionObserver is widely available in our grade A browsers, we recommend deprecating the mediawiki.viewport library.
Intersection/MutationObserver will be more performant than our existing approach in RelatedArticles and QuickSurveys.
We will update RelatedArticles and QuickSurveys as part of T262859 to use Intersection/MutationObserver . For browsers that don't support it we will not show related articles and will not log impressions for QuickSurveys, which is fine.
We will then deprecate this module in core.
- Drop from MobileFrontend
- Rewrite QuickSurveys to use MutationObserver
- Rewrite RelatedArticles to use MutationObserver
- Deprecate in core