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 correct answer is:

  • 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

🎓 Get all the latest and 100% correct HubSpot CMS for Developers II Certification Exam Answers