ShopTalk

668: Jake Archibald on Native HTML Includes

· Summarized

Share this episode
Anyone with this link can open it.
Share Link
Start at 0:00

Key takeaways

  • HTML currently lacks a native import mechanism, which poses a challenge for developers looking to manage content effectively.
  • Iframes have significant limitations in handling CSS, which restricts their usability for embedding content.
  • There's a strong community desire for an HTML include feature to reduce code repetition and streamline component design.
  • Performance concerns and security implications must be carefully considered in any proposal for HTML includes.
  • The importance of developer feedback is critical in shaping the future of HTML functionalities.

Summary

Introduction to HTML Includes

In this episode, Dave Rupert and Chris Coyer welcome Jake Archibald to discuss the concept of HTML includes. The conversation is sparked by an article written by Chris, which raises the question about whether HTML can import itself akin to CSS and JavaScript. Unlike CSS and JavaScript, HTML lacks a native mechanism for including content from other HTML files.

The State of iframes and Responsive Design

The discussion moves to the use of iframes, which are currently the closest alternative for embedding HTML content. Jake explains the limitations of iframes, particularly how they behave like a 'brick wall' that CSS can't penetrate. The recent proposal for responsive iframes is touched upon, but the hosts agree that this doesn't quite solve existing problems.

The Need for HTML Includes

The trio reflects on the developer's need for features that streamline content management on websites. They debate the pros and cons of potential HTML includes, exploring how tools for modular component design could reduce code repetition, especially for common page elements like headers and footers.

Technical Implications and Community Feedback

A key point of the discussion involves the implications of implementing an HTML include feature from a technical standpoint. Concerns are raised around parsing performance and security issues, similar to past feelings about HTML imports. The conversation underscores the importance of community feedback in shaping developer needs for the feature.

Challenges and Future Considerations

The podcast wraps up with reflections on challenges surrounding browser adoption, potential implications for SEO, and how emerging technologies, including AI-generated content, could affect infrastructure and user experience. Jake emphasizes the need for balanced, considered implementation, ensuring that new features enhance usability rather than complicate it.

Sponsors

  • ShopTalk Show · Listen to the latest episode featuring Jake Archibald discussing HTML includes and their implications.

Show notes

Show Description

Jake Archibald joins us to discuss HTML includes, potential solutions, and the implications of introducing such a feature. We talk about security concerns, performance implications, and community feedback regarding HTML imports.

Listen on Website

Guests

Jake Archibald

Guest's Main URL • Guest's Social

Engineer at Shopify. Once swam to the end of an infinity pool.

Links

Follow this show on AudioBrevity and new episodes get summarized for you. Create a free account

Couldn't load the audio. A blocker may be stopping the show's tracking links. Open the file