news.volyx.in

Show HN: htmz – a low power tool for HTML (leanrada.com)

1020 points by Kalabasa · 910 days ago · 242 comments on HN

Article summary

The article introduces htmz, a minimalist HTML microframework that allows for loading HTML onto any element in a page on request, without requiring JavaScript frameworks or special syntax. It uses an iframe to fetch and parse HTML resources, and then transplants the contents into a specified destination. The author argues that htmz is a more lightweight and straightforward approach to achieving interactive web user interfaces. The framework is designed to work with vanilla HTML and does not require any dependencies or backend infrastructure.

Main themes

  • minimalist web development
  • JavaScript usage
  • web accessibility
  • iframe functionality
  • server-side handling
  • user experience
  • web security

What commenters say

  • Disabling JavaScript can be a way to avoid tracking and improve user experience, but it may break some websites.
  • Websites should be designed to degrade gracefully when JavaScript is disabled, but this may not always be necessary or desirable.
  • The use of iframes and JavaScript can be seen as a trade-off between functionality and simplicity.
  • Some users prefer to disable JavaScript by default and only enable it when necessary, while others see it as an essential part of the web browsing experience.
  • The Sec-Fetch-Dest header can be used to distinguish between iframe and non-iframe requests, allowing for more flexible server-side handling.
  • The importance of accessibility and usability should be balanced against the need for dynamic and interactive web applications.
  • The role of JavaScript in web development is seen as essential by some, while others view it as a potential obstacle to simplicity and security.