HubL updates you can leverage to improve site performance
Today we're introducing some updates to commonly used HubL tags and functions that you can use to improve performance on your HubSpot websites.
The Image HubL tags have been updated to support the
loading attribute. The
loading attribute for
img HTML elements tells browsers to use browser-based lazy loading of assets on your website. This can have significant positive effects on page performance.
The option is now available in the
logo HubL tags. As a reminder, we added similar functionality for image fields last November.
require_js function has been updated to add support for the
defer attributes to the script tags generated by the function.
require_css function has been updated to support loading CSS asynchronously, a performance technique that is useful when implementing critical CSS.
To stay up to date with the latest updates make sure to subscribe to the changelog.