GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — Update analytics data sending method by Shrishti0423 · Pull Request #4002 · javascript-tutorial/en.javascript.info ConversationUpdated the analytics example to use the The analytics data is sent using
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsReplaced 'unload' event with 'visibilitychange' to send analytics data when the document is hidden.
AKzar1el
reviewed
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The new handler can run repeatedly while the page stays open, but the surrounding section still describes a one-time unload event.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the feedback! I've updated the example to use a one-time reporting guard based on the return value of
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUpdated the explanation of using the visibilitychange event and navigator.sendBeacon for sending analytics data.
| ||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |
There was an error while loading. Please reload this page.