Is there a way to load on window.addEventListener “beforeunload”?
Sometimes, there is a few moments where a user clicks a link and it takes some time to connect to the server before beginning the load process. I have a little script that shows a “shimmer” animation while the user waits for the load process. Is there a way to call your plugin at this point? Here’s the script I’m using, called before the closing </body>:
This adds “page-loading” to the body class, which then uses pseudo class to show a css animation. What I’d really like is to trigger your plugin. Any chance this is possible?
The page I need help with: [log in to see the link]
- The topic ‘Load beforeunload’ is closed to new replies.