Wussten Sie, dass wir eine deutschsprachige Community haben?

Progressive Image Loading with HubSpot

Highlighted
Profi

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 ANTWORTEN 6
HubSpot Produkt-Team

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

Vishnu M.
Product Manager, Mobile
Profi

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
Antworten
0 Like / Likes
Hubspot-Mitarbeiter

Great tip @stefen

Antworten
0 Like / Likes
Mitwirkender

Hi Stefen,

 

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

Can I find it elsewhere?

 

Thanks a lot!

Fabian

Antworten
0 Like / Likes
Profi

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

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

Hey stefen,

 

thanks a lot for that! Smiley (überglücklich)

Antworten
0 Like / Likes