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.
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.
Day two of Pharos. Three functions, a tiny sitemap, and the script is already crawling. Turns out the CPU was barely working.
First post in the Pharos series. I'm building a CLI that scans my site for AI agents to consume, starting with parsing the sitemap.xml.
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.