Chrome Dev Summit and Website Changes
Dec 9, 2020
The 2020 Chrome Developer Summit was just last week and it inspired me to rerun some Lighthouse tests and touch up a few issues on my website. I ran the following tests multiple times:
- Lighthouse tests in a Chrome Extension form.
- Web.dev/measure
- https://www.webpagetest.org/
- AMP Page Experience Guide
I touched up the following issues:
- I corrected the bug with the blog post comments. From now on, the comment section is separated for each blog post. Earlier all comments appeared for all blog posts (all of them were in one realm). As a side effect of the fix the existing comments are not accessible anymore. Please comment again if you want your voice to be heard!
- "Heading elements are not in a sequentially-descending order": I modified the HTML in multiple places to adhere to the rules.
- "iframe without title": the Disqus integration’s iframe was affected. I almost thought this was about the <title> element in the iframe, but in reality, this is about the title attribute. Fortunately if I supply a title attribute to the amp-iframe element then the AMP mechanisms pass that over to the generated iframe element.
- I fiddled around a lot with the Workbox plugin since Lighthouse recently falsely claimed that the page marked with the PWA Manifest’s start_url was not functioning offline. I verified later with a test on my phone that it indeed works offline. But this error made me double-check everything, adjust caching rules, and at some point I even tried to switch to jekyll-pwa-workbox, because jekyll-workbox-plugin has a bug with wildcard caching rules. I had to revert to jekyll-workbox-plugin because jekyll-pwa-workbox’s code doesn’t fit seamlessly into my AMP setting.
- One of the tools found a slightly malformed HTML anchor. Visual Studio Code’s auto-complete tends to insert the closing </a> tag and sometimes this causes the open-close tag hierarchy to go out of sync due to an extra closing tag.
- I modified all of the Manifest icons to be maskable. This required shrinking the QR code pattern on all of the icons and resaving them.
- AMP Optimizer advised placing a precache for the main AMP JavaScript library.
- I also used the data-hero attribute for the about page’s carousel images. Maybe I’ll use them somewhere else as well.
- That Lighthouse or PageSpeed Insights reports all AMP scripts as "Unused Javascript" is a known issue. I believe that in the future this can be overcome by using modularized AMP components in case the browser supports modularization. These types of AMP components are in beta right now.
- I was not able to uncover which JavaScript files were reported as unused because there is some kind of a Linux or distribution specific Lighthouse Chrome Extension bug.
The Chrome Dev Summit revolved a lot around privacy and security. Core Web Vitals was also a very important topic: three major metrics were established. I’d like to take advantage of them with my website but right now I don’t see how to nicely integrate Google Analytics’s Core Web Vitals, I’d expect to have an AMP component which leverages the technology. Cloudflare as a host also embraced Core Web Vitals under their Browser Insights but I have to have a nice AMP way to integrate that as well.
I highly advise you to try Chrome Dev Summit’s Adventure Site, it’s a lot of fun to supplement the lack of face-to-face interaction of a traditional conference setup. GDG Fresno teamed up with GDG Little Rock and GDG Sonoma to deliver a Chrome Dev Summit Extended event on January 16th, 2021. Join us to listen to Googler presenters and Google Developer Group and Women Techmakers speakers.