5 Matching Annotations
  1. Jan 2022
    1. Reduced complexity of instances - Easily select or adjust properties without changing the entire component.

      From the creator point of view, extremely helpful. Reduces production hours and keeps everything tidy up.

    1. You can use the sync value if the image itself is the most important piece of content to prioritize.

      Low-data connections can find pages thought with this in mind extremely useful. Let's imagine an article about educational resources: first to render those aspects truly important.

    2. Use the loading attribute to tell the browser how urgently you want it to load an image. For images below the fold, use a value of lazy. The browser won't load lazy images until the user has scrolled far down enough that the image is about to come into view. If the user never scrolls, the image never loads

      I find it very useful in cases when we have tons of pictures rendering on the same website. Sometimes it comes in handy to delay the render of such images for performance gains.

    1. A common best practice is to define custom properties on the :root pseudo-class, so that it can be applied globally across your HTML document:

      Handy. Kind of a home palette from where to pick different properties at a human recognisable language. I can see the potential use, not only to work in the specific HTML document, but also, to create some sort of common-used properties for later cherry-picking options.

    2. The first argument to the function is the name of the custom property to be substituted. The second argument to the function, if provided, is a fallback value, which is used as the substitution value when the referenced custom property is invalid.

      Reminds me of the IF function in Excel. Only that as per the next sentence, this only takes into consideration 2 parameters.

      Later on, it is stated that using a custom variable as one of the parameters can provide more than 1 fallback option, but with a cost in performance.

      I cannot but wonder if the two concepts could be merged for performance gains.