Sending HTTP Requests Reliably When a Page Unloads
Navigator.sendBeacon() is designed to send data when a page is unloaded. It guarantees delivery even if the page is closed. Basic usage: navigator.sendBeacon('/log', JSON.stringify({ some: 'data' })); The API does not allow custom headers. To send JSON with the proper Content-Type, use a Blob. <a href="/some-other-page" id="link">Go to Page</a> <script> document.getElementById('link').addEventListener('click', (e) => { const blob = new Blob([JSON.stringify({ some: 'data' })], { type: 'application/json; charset=UTF-8' }); navigator.sendBeacon('/log', blob); }); </script> Compared to fetch with keepalive, sendBeacon uses low priority, so it does not interfere with critical page actions....
Entering the Manufacturing Domain in April 2026
Joining the APC project for LG Energy Solution’s battery manufacturing in April 2026 was the biggest turning point in my career.
Moving NaverWorks Emails to Folders with Non-ASCII Names in Python (with GAS Batch & Modified UTF-7)
How I resolved non-ASCII folder encoding issues when automating email movement in NaverWorks via IMAP.
First Day at Work
I joined the company Enders as an employee of Hwajeongsoft. I greeted the team leads and PMs, and since the project has just started, I need to set up everything from scratch. I spent the first day installing and setting up various internal system tools. They said I will be developing in a JSP Java environment, but I’m not sure exactly what role I will have; I will try my best....
Deploying a Blog with Hugo + Papermod on Cloudflare Pages
A quick guide to deploying a blog using Hugo and Papermod theme on Cloudflare Pages.