On some browsers (especially legacy ones), window.resize() and window.scroll() can fire thousands of times a second. We can improve performance by using $.debounce() if it is available.

Patch forthcoming.

CommentFileSizeAuthor
#1 1823612_debounce_1.patch1.1 KBdalin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dalin’s picture

FileSize
1.1 KB
NickDickinsonWilde’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

However, Drupal 7 doesn't have a debounce function AFAIK so this would be of minimal use no?

NickDickinsonWilde’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)