georgebakoulis.dev

Software Engineer

Hi, I'm George. I build things for the web, at work, after work, and most weekends too.

Zurich, Switzerland

One await was costing me 4 seconds

One await in a for loop was costing me 4 seconds. Moving it into a .map with Promise.all fired all my network requests at once.

The Bottleneck Wasn't the Code

Day two of Pharos. Three functions, a tiny sitemap, and the script is already crawling. Turns out the CPU was barely working.

Polylang Already Handles Your Hreflang Tags

Adding manual hreflang tags in a WordPress theme that uses Polylang causes duplicate tags and wrong URLs. Here's what goes wrong and why you should remove that code.