Please review a simple JavaScript change to avoid the `ResizeObserver` callback to interrupt smooth scrolling on Chrome browsers when an page with an anchor is loaded. Unfortunately, Chrome is susceptible to interrupt smooth scrolling if a script accesses the DOM while scrolling. Since the `ResizeObserver` callback is invoked when the page is loaded, Chrome failed to scroll to the element indicated by the anchor. This change causes the initial invocation of the callback to be ignored.
------------- Commit messages: - JDK-8339684: ResizeObserver callback interrupts smooth scrolling on Chrome Changes: https://git.openjdk.org/jdk/pull/20935/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20935&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8339684 Stats: 3 lines in 1 file changed: 2 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/20935.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/20935/head:pull/20935 PR: https://git.openjdk.org/jdk/pull/20935