Hi there,
I’m trying to implement preloading for hero images but running into issues with the automatic resizing feature. I’ve followed this example: https://community.hubspot.com/t5/CMS-Development/Strip-Image-Height-and-Width-from-source-variable/m-p/526689 but for some reason HubSpot is STILL adding the “?width=x&height=x&name=x” even though I’ve used the split function to cut it out. I’ve likewise tried the ?noresize queryparam and when I test it by using {{ img_src }} outside of the image tag it’s fine and appears correctly, but inside the img tag it’s STILL adding the same queryparams which will not work with preloading. I can’t simply remove the height and width attributes from the tag.
This is what it looks like even after trying both the split function and the ?noresize queryparam:
![]()
As you can see, it simply gets added in between the file and the rest of the queryparams. I don’t understand what’s happening here. It’s really frustrating.
Can anyone give me some tips on how to stop HubSpot from altering the url completely, or implementing preloading? Thanks.

