Hola! ¡Tenemos nuestra Comunidad en Español!

Progressive Image Loading with HubSpot

Highlighted
Advisor

progressive-image.gif

Have you seen how images load in popular apps such as WhatsApp, Instagram, or on Medium's website? This technique is called "progressive image loading" or "the blur up technique" and it's actually not hard to accomplish on HubSpot's COS thanks to it's auto image resizing capabilities.

I wrote a blog post on how to do it, but in short, all you have to do is add a URL parameter to the end of an IMG's src attribute "?width=20" and then you can fade it out once the full size image loads with some javascript. For more details on how to implement this with full width background images, read my blog post.

 

I'd love to see other ways this can be used or if anyone has tried anything like this in HubSpot.

--
Stefen Phelps
Web Developer / Co-founder
Kelp Creative Agency
Twitter — @stefen
6 Replies 6
HubSpot Product Team

Sweet tip @stefen. Thanks for sharing! Definitely bookmarking this for my next project.

Vishnu M.
Product Manager, Mobile
Advisor

Thanks @vishnu! You could try and take it a step further and write a script that works with content images rather than just on backgrounds ;-)

--
Stefen Phelps
Web Developer / Co-founder
Kelp Creative Agency
Twitter — @stefen
Reply
0 Upvotes
HubSpot Employee

Great tip @stefen

Reply
0 Upvotes
New Contributor

Hi Stefen,

 

unfortunately the blog article is no longer availabe at the provided link.

Can I find it elsewhere?

 

Thanks a lot!

Fabian

Reply
0 Upvotes
Advisor

Sorry about that, @FabianP. I've updated the link to a working version.

--
Stefen Phelps
Web Developer / Co-founder
Kelp Creative Agency
Twitter — @stefen
New Contributor

Hey stefen,

 

thanks a lot for that! Smiley Very Happy

Reply
0 Upvotes