You really don't need all that JavaScript, I promise

Submitted by sonniesedge on Tue, 10/08/2019 - 23:05

So you say to yourself, I have a plan. Instead of me letting the user click on a link that then goes to the browser and the browser giving me back control when the new page loads, what about implementing that myself?

Instead of letting the browser handle navigation, I will handle navigation, so as to avoid the loss of control. What I'll do is, I'll XHR the page off the server, and then I'll innerHTML it into the current page. You're getting around the loss of control by handling loading yourself. Don't trust the browser to do it, do it yourself. Implement it internally.

An excellent post from Stuart Langridge. It excellently sums up the culture of Not Invented Here that permeates the industry of late.

Dark mode

Submitted by sonniesedge on Mon, 10/07/2019 - 08:05

Excellent implementation work by Jeremy on his personal site. Dark mode is something that we can easily add everywhere!

Subscribe to Web