日本語コミュニティーへようこそ!コミュニティーを使い始めるには

をご覧ください

Progressive Image Loading with HubSpot

Highlighted
アドバイザー

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件の返信6
HubSpot製品開発チーム

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

Vishnu M.
Product Manager, Mobile
アドバイザー

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
返信
0 いいね!
HubSpot社員

Great tip @stefen

返信
0 いいね!
新規投稿者

Hi Stefen,

 

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

Can I find it elsewhere?

 

Thanks a lot!

Fabian

返信
0 いいね!
アドバイザー

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

--
Stefen Phelps
Web Developer / Co-founder
Kelp Creative Agency
Twitter — @stefen
新規投稿者

Hey stefen,

 

thanks a lot for that! スマイリー とてもハッピー

返信
0 いいね!