Coding for SEO: Using JavaScript to track COVID-19
An explanation of asynchronous JavaScript using Fetch API for getting JSON data to the screen. Alongside tanking search rankings, you may encounter a Google Search Console warning about First Input Delay. After profiling page performance using Dev Tools (performance tab, CPU chart), you might find JavaScript is consuming time on the CPU main thread. That JavaScript probably contains widely supported, but older-style, XML HTTP Request (XHR) for a network resource. Modern JavaScript doesn’t have to lock up the CPU main thread the way XHR does. New patterns also make it easy…
Read More