Data Protection Rules!
My personal GDPR initiative.
With great interest I read about privacy enhancements by Thomas Leitner, where he explains how the General Data Protection Regulation (GDPR) by the European Union inspired him to make some changes on his site. I thought about doing something similar, but this was not the kind of topic that makes you drop everything else. So nothing changed for several months. In October Apple CEO Tim Cook chimed in, and I finally took action during the Christmas Holidays.
Turning regulations into something positive
General Data Protection Regulation? Sounds fun. Wrong.
But you can use such regulations to reflect on the innards of your site. In my case it was simple. I do not collect any data. No tracking. Nothing at all. But the way the web works, this does not mean I can stop here. Whenever you see source code on this site, PrismJS is used for syntax highlighting. PrismJS has always been part of this site, i.e. it is not loaded from a remote source. If no remote server is needed to fulfill your request, none of your data needs to be transferred there, so no problem. Which meant I had to find the parts that do point to a remote source.
My search revealed two culprits, 1. Google web fonts, and 2. that CodePen script that turns links into
<iframe>-embedded live demos. This is how I handled the situation:
- Web font: Instead of hosting Open Sans myself, I simply removed the font. It was only used for headings anyway, the body text already relied on whatever serif fallback font your browser offers.
- Live demos: I’ve removed the script altogether, so each link to CodePen remains a link, but they now look like click-to-play rectangles with thumbnail background images.
Both measures led to increased performance, but you could quibble over the not-as-great experience. Well, it depends. If you use a browser extension like Privacy Badger, said CodePen script never got executed. And maybe you have turned off web font loading, as I did.
With these changes in place, no matter which page on cssence.com you look at, your IP address won’t be transferred to a third party location anymore. Sure enough, your IP address will be transferred to the server that hosts my site, which happens to be the awesome Netlify, but if a regulation would forbid that, there won’t be a web anymore.
Privacy, center stage
Last year I proclaimed that 2017 was the year of accessibility. If you consider everything that happened in 2018, from Mark Zuckerberg’s testimony to the record number of people affected by data breaches, then you’ll remember 2018 as the year of Privacy and Data Protection. Or the lack of those things.
At the very least, the topic got the deserved attention, so even average Joe should be more informed after everything that has happened. For all those companies out there (the one I work for included), it took enormous efforts to implement measures to follow the new Regulation. But it is a good thing in the right direction.
Originally published at cssence.com on December 30, 2018.