In his The Long Web talk at An Event Apart in Wasington DC 2013 Jeremy Keith outlined how we can build Web sites for the long term and why we should. Here are my notes from his talk:
- Language is one of the most amazing inventions of civilization: it allowed us to transfer ideas between brains in real time/space. Writing allowed us to do that across longer distances and time spans: days, months, year, centuries.
- Writing has evolved over the centuries into the system and set of codebases (languages) we use today.
- Text formats allowed us to preserve human knowledge in libraries, scrolls, papyrus, clay tablets, and more.
- Example: The Chicago chief of police was an Irish immigrant who wanted to preserve Irish music. He hired Irish musicians and recorded 1001 songs as sheet music. His work preserved Irish music for generations and is still used today.
- Mobile first forces you to figure what is important when you design. The small screen requires you to prioritize the content and tasks you are creating.
- Mobile first means working content first. When you do, you might want to consider the URL first. URLs are universal they work on paper, iPhones, command lines, and more. URL design is an important part of making sites understandable and hackable.
- Designing your URLs first, allows you to think about the API of your site early on in the design in the process.
- After you have URLs together and have thought through your design, break down the components in your site into their atomic bits. From there you can build a deliverable of the components as an HTML page.
- The corollary to content first is navigation second. Lead with content and include a direct link to navigation at the bottom. A direct hyperlink works across all browsers and gives people access to navigation quickly and easily. It's a great baseline experience even if you want to enhance the navigation to something different on more capable devices.
- The rationale of "no other site is doing this" doesn't hold water. Example: showing passwords by default -this is just security theater.
- New input types are now available that allow you to specify formats like number, date, email. These bring up input-specific keyboards on many mobile devices.
- In a datalist, you can use placeholder text to insert a random suggestion inside an input field. This is a great example of progressive enhancement: not all browsers can see the most enhanced version but they all can render and use the site.
- Progressive enhancement: start with a baseline and layer on enhancement. It’s not designing for the lowest common denominator, its starting from the lowest common denominator and enhancing as much as you like.
- SVG is a text file and an image format. But it may have a longer shelf life because you can view source on it.
- SVG files can contain CSS and scripts. The CSS can contain media queries so you can change the SVG image as the image size changes.
- Conditionally load content from third parties after your DOM has loaded. These includes are often blocking resources and will stop rendering of the page if you don't load them asynchronously.
- DNS prefetch, preloading, and pre-rendering can help you squeeze more performance out of a Web page. Micro-performance in 100s of milliseconds is a important consideration for the Web.
Long Term Thinking
- Future Friendly is an attempt to build Web sites that will last. Being backwards compatible is the best way to ensure your sites work on future devices.
- Think in the short term (performance in milliseconds) and long term (hundreds or thousands of years) when you build Web sites.
- The average lifespan of a Web page is a month. We assume the Web stays up forever but the truth is things disappear regularly. The first step is acknowledging we have a problem.
- What about the long term viability of the text formats we use on the Web? HTML has the best chance of staying relevant. The Web has been around for 20+years and the first Web page still works.
- Long term thinking is at the heart of HTML and unlike other technology formats it will last for a long time to come.