6 comments

  • spankalee 16 minutes ago

    I'm a big web components guy, but calling these web components is a massive stretch of the word component.

    The word "component" has to mean something ultimately, and to me the defining feature of a web component is that it's self-contained: it brings along its own dependencies, whether that's JavaScript, templates, CSS, etc. Web components shouldn't require an external framework or external CSS (except for customization by the user) - those things should be implementation details depended on directly by the component.

    This here is just CSS using tag names for selectors. The element is doing nothing on its own.

    Which is fine! It's just not web components.

    edit: Also, don't do this:

        <link-button>
          <a href="">Learn more</a>
        </link-button>
    
    That just adds HTML bloat to the page, something people with a singular focus on eliminating JavaScript often forget to worry about. To many HTML elements can slow the page to a crawl.

    Use classes:

        <a class="button" href="">Learn more</a>
    
    They're meant for this, lighter weight, and highly optimized.
  • hyperhello 36 minutes ago

    The reason fixing ads from the inside won’t work is that they are designed to disrupt. An ad that ruins your scrolling for three seconds is preferable to one that ruins your scrolling for 2.5 seconds. All ads are designed to wreck the environment that they are in, to create a space for irrationality to enter.

  • vaylian 35 minutes ago

    I've never been deep into XSLT, but I kind of have the impression, that this would have solved the issue.

  • pier25 35 minutes ago

    Why not just use CSS?

      etchalon 21 minutes ago

      It is using CSS.

        pbowyer 15 minutes ago

        Why not use CSS without the custom element? From this post I don't see the benefit of using <swim-lanes> over <section class="swim-lanes"> for example.