gocodebox / lifterlms

LifterLMS, a WordPress LMS Solution: Easily create, sell, and protect engaging online courses.
https://lifterlms.com
GNU General Public License v3.0
174 stars 134 forks source link

lifterlms.js uses unload event, which is scheduled to be removed from chrome. #2620

Open dominiquemariano opened 3 months ago

dominiquemariano commented 3 months ago

Reproduction Steps

  1. Create a new site with a fresh install of LifterLMS.
  2. Analyze that site using pagespeed.web.dev
  3. In the results page, navigate down to General > Uses deprecated APIs

Expected Behavior

Shouldn't be using deprecated APIs that are scheduled to be removed from Chrome.

Actual Behavior

1 deprecation warning for UnloadHandler, as you can see in this screenshot. See https://developer.mozilla.org/en-US/docs/Web/API/Window/unload_event

This issue has be recreated: