Select all that apply. What can you do to optimize images within a custom module?

Question: Select all that apply. What can you do to optimize images within a custom module?

  • Set the image’s loading attribute to “lazy,” by default
  • Add width and height attributes to the image
  • Use the resize_image_url function to resize the image
  • Use srcset and sizes attributes

The answer(s) to the question is highlighted in the BOLD text above. You can also find more questions and answers related to the exams on the “HubSpot CMS for Developers II” page.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top