Opened on 07/23/2018 at 08:57:08 PM

Closed on 08/29/2019 at 05:43:52 PM

#6804 closed change (rejected)

Run element hiding emulation before the DOMContentLoaded event

Reported by: mjethani Assignee:
Priority: P3 Milestone:
Module: Core Keywords: closed-in-favor-of-gitlab
Cc: hfiguiere, kzar Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description (last modified by mjethani)

Background

Currently we wait for the DOMContentLoaded event before running element hiding emulation on the document. While this makes sense, often the elements we want to hide are already available in the DOM (and visible to the user) while the DOM is still loading! The MutationObserver object starts reporting new elements being added to the DOM before the DOM is even ready.

Because we wait until DOMContentLoaded, the elements are hidden much later than they could be, which makes for a poor user experience.

We are using the hide-if-contains snippet as a substitute for now (#6809).

What to change

[Investigate if element hiding emulation can be run on the document before the DOM is ready and update this space.]

Attachments (0)

Change History (2)

comment:1 Changed on 07/26/2018 at 12:32:30 PM by mjethani

  • Description modified (diff)

comment:2 Changed on 08/29/2019 at 05:43:52 PM by sebastian

  • Keywords closed-in-favor-of-gitlab added
  • Resolution set to rejected
  • Status changed from new to closed

Sorry, but we switched to GitLab. If this issue is still relevant, please file it again in the new issue tracker.

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none).
 
Note: See TracTickets for help on using tickets.