Page MenuHomePhabricator

Proactively lazyload the advancedSearch form
Closed, ResolvedPublic3 Estimated Story Points

Description

Motivation
AdvancedSearch should not slow down the loading of the Special:Search page.
The AdvancedSearch form can only be interacted with, if you expand it, and if people are not using AdvancedSearch it is not needed at all. Hence it should be loaded last, but ideally, before the person actually wants to use it.

Task

  • When Special:Search is loaded, the (not visible) advancedSearch form does not load until 500 ms after reaching the page
  • Do some performance checking how this behaves on slower internet connections

Notes

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Lea_WMDE triaged this task as Medium priority.Jul 31 2018, 9:49 AM
Lea_WMDE updated the task description. (Show Details)
Lea_WMDE set the point value for this task to 3.

Change 453083 had a related patch set uploaded (by Thiemo Kreuz (WMDE); owner: Thiemo Kreuz (WMDE)):
[mediawiki/extensions/AdvancedSearch@master] Replace setTimeout with requestIdleCallback

https://gerrit.wikimedia.org/r/453083

Change 453083 merged by jenkins-bot:
[mediawiki/extensions/AdvancedSearch@master] Replace setTimeout with requestIdleCallback

https://gerrit.wikimedia.org/r/453083

thiemowmde claimed this task.
thiemowmde removed a project: Patch-For-Review.
thiemowmde moved this task from Incoming to Advanced Search on the archived--TCB-Team board.

The first, relevant part of this ticket got resolved via https://gerrit.wikimedia.org/r/433991. Note this still does not lazy-load the JavaScript modules, but only "lazy-initializes" the expanded advanced search panel. We will create a new ticket for actual lazy-loading.