<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Browser-based lazy-loading now available for module image field in Developer Announcements</title>
    <link>https://community.hubspot.com/t5/Developer-Announcements/Browser-based-lazy-loading-now-available-for-module-image-field/m-p/385485#M48</link>
    <description>&lt;P&gt;&lt;A href="https://caniuse.com/loading-lazy-attr" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 300;"&gt;Most modern web browsers&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-weight: 300;"&gt; support &lt;/SPAN&gt;&lt;A href="https://web.dev/browser-level-image-lazy-loading/" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 300;"&gt;browser-based lazy loading&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-weight: 300;"&gt; of images through an HTML attribute. Setting the "loading" attribute to "lazy" defers loading of the asset until just before it's needed. We've updated the image field to allow for controlling that attribute.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;&lt;STRONG&gt;What’s happening?&lt;/STRONG&gt;&lt;/H2&gt;
&lt;P&gt;&lt;SPAN style="font-weight: 300;"&gt;To give developers and content creators control of this loading attribute, we've added new properties to the image field.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-weight: 300;"&gt;The “loading” field property can now be set on &lt;/SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/module-theme-fields#image" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 300;"&gt;image fields&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-weight: 300;"&gt; inside of custom modules to allow for the deferring of image loading. Developers are also able to control whether or not content editors are able to set the loading attribute through the in-app editor by showing or hiding controls using the “show_loading” &lt;/SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/module-theme-fields#image" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 300;"&gt;attribute in the fields.json&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-weight: 300;"&gt; file. This gives developers a way to prevent usage for situations where lazy would not be appropriate for technical reasons.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-weight: 300;"&gt;These properties can also be &lt;/SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/cms/guides/speed/lazy-loading#add-lazy-loading-to-image-fields-using-the-design-manager" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 300;"&gt;set through the design manager&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-weight: 300;"&gt;'s module editor.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The Lazy-loading properties for the &lt;/STRONG&gt;&lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/module-theme-fields#image" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;image field&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; are now available&lt;/STRONG&gt;&lt;SPAN style="font-weight: 300;"&gt;. &lt;/SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/cms/guides/speed/lazy-loading" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 300;"&gt;Learn about lazy loading assets for performance on HubSpot&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-weight: 300;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2020 22:19:29 GMT</pubDate>
    <dc:creator>AJLaPorte</dc:creator>
    <dc:date>2020-11-12T22:19:29Z</dc:date>
    <item>
      <title>Browser-based lazy-loading now available for module image field</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/Browser-based-lazy-loading-now-available-for-module-image-field/m-p/385485#M48</link>
      <description>&lt;P&gt;&lt;A href="https://caniuse.com/loading-lazy-attr" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 300;"&gt;Most modern web browsers&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-weight: 300;"&gt; support &lt;/SPAN&gt;&lt;A href="https://web.dev/browser-level-image-lazy-loading/" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 300;"&gt;browser-based lazy loading&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-weight: 300;"&gt; of images through an HTML attribute. Setting the "loading" attribute to "lazy" defers loading of the asset until just before it's needed. We've updated the image field to allow for controlling that attribute.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;&lt;STRONG&gt;What’s happening?&lt;/STRONG&gt;&lt;/H2&gt;
&lt;P&gt;&lt;SPAN style="font-weight: 300;"&gt;To give developers and content creators control of this loading attribute, we've added new properties to the image field.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-weight: 300;"&gt;The “loading” field property can now be set on &lt;/SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/module-theme-fields#image" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 300;"&gt;image fields&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-weight: 300;"&gt; inside of custom modules to allow for the deferring of image loading. Developers are also able to control whether or not content editors are able to set the loading attribute through the in-app editor by showing or hiding controls using the “show_loading” &lt;/SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/module-theme-fields#image" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 300;"&gt;attribute in the fields.json&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-weight: 300;"&gt; file. This gives developers a way to prevent usage for situations where lazy would not be appropriate for technical reasons.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-weight: 300;"&gt;These properties can also be &lt;/SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/cms/guides/speed/lazy-loading#add-lazy-loading-to-image-fields-using-the-design-manager" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 300;"&gt;set through the design manager&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-weight: 300;"&gt;'s module editor.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The Lazy-loading properties for the &lt;/STRONG&gt;&lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/module-theme-fields#image" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;image field&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; are now available&lt;/STRONG&gt;&lt;SPAN style="font-weight: 300;"&gt;. &lt;/SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/cms/guides/speed/lazy-loading" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 300;"&gt;Learn about lazy loading assets for performance on HubSpot&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-weight: 300;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 22:19:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/Browser-based-lazy-loading-now-available-for-module-image-field/m-p/385485#M48</guid>
      <dc:creator>AJLaPorte</dc:creator>
      <dc:date>2020-11-12T22:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Browser-based lazy-loading now available for module image field</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/Browser-based-lazy-loading-now-available-for-module-image-field/m-p/395770#M61</link>
      <description>&lt;P&gt;Why would you not set lazy loading as the default...... You only need items above the fold to&amp;nbsp;&lt;EM&gt;not&lt;/EM&gt; be lazy loaded which is typically only one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure you'll have a few people not understand and it's a breaking change, that can be mitigated by running current sites through a critical parser and detecting which are above the field and re-injection, but entirely possible and it's 2020.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is literally no better than&amp;nbsp;not having it all. You still have to click on every single image constantly and enable lazy loading. It's still a round about way of doing things and didn't improve anything at all.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I may as well just still open the source code and edit it. It takes just as long.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2020 23:39:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/Browser-based-lazy-loading-now-available-for-module-image-field/m-p/395770#M61</guid>
      <dc:creator>Ntbrown</dc:creator>
      <dc:date>2020-12-27T23:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Browser-based lazy-loading now available for module image field</title>
      <link>https://community.hubspot.com/t5/Developer-Announcements/Browser-based-lazy-loading-now-available-for-module-image-field/m-p/395895#M62</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/118753"&gt;@Ntbrown&lt;/a&gt;&amp;nbsp;as you noted it would be a breaking change to force all images to be lazy loaded by default on all existing websites. &lt;BR /&gt;We are aware it can be desirable to have most of the images on a site lazy load. Understand, this is an incremental update to enable you to take action right now in a way that is non-breaking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We're constantly improving performance on the CMS on multiple fronts and will announce further updates when those features are ready.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 01:45:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Developer-Announcements/Browser-based-lazy-loading-now-available-for-module-image-field/m-p/395895#M62</guid>
      <dc:creator>jmclaren</dc:creator>
      <dc:date>2020-12-29T01:45:01Z</dc:date>
    </item>
  </channel>
</rss>

