SpaceheadConcepts
SpaceheadConcepts Recent Posts
Threads Started
7 posts
  • Elite Author
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 2-3 years
  • Exclusive Author
  • Australia
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
SpaceheadConcepts says

Hi all,

The WordPress marketplace is flooded with responsive themes, but I was wondering if any devs include responsive images in their theme? For example, the featured image on a blog post is actually smaller in file size and resolution on a mobile than the desktop?

169 posts
  • United Kingdom
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Referred between 100 and 199 users
  • Bought between 10 and 49 items
mikedidthis says

Urm.. Yep! :)

Not WordPress, but Tumblr. I server the lowest resolution images first (250px wide) and replace the image with a higher resolution image using client side jQuery. (No server side solution for Tumblr :) )

I do the calculation based on the anchor wrapping the image, rather than the screen resolution.

Example: Anchor is 500px wide, the 250px image gets replaced with a 500px image. (http://mikedidthis-focus.tumblr.com/tagged/photo/chrono)

738 posts
  • Has been a member for 5-6 years
  • United States
  • Bought between 10 and 49 items
  • Exclusive Author
Jar says

Urm.. Yep! :)

Not WordPress, but Tumblr. I server the lowest resolution images first (250px wide) and replace the image with a higher resolution image using client side jQuery. (No server side solution for Tumblr :) )

I do the calculation based on the anchor wrapping the image, rather than the screen resolution.

Example: Anchor is 500px wide, the 250px image gets replaced with a 500px image. (http://mikedidthis-focus.tumblr.com/tagged/photo/chrono)

That’s pretty nifty!

169 posts
  • United Kingdom
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Referred between 100 and 199 users
  • Bought between 10 and 49 items
mikedidthis says

That’s pretty nifty!

Thanks, I try to work mobile first with all my themes, as I think most sell due to them being responsive.

I am going to share the script incase any users can improve it, my jQuery skills are ‘patchy’ to say the least :)

SpaceheadConcepts
SpaceheadConcepts Recent Posts
Threads Started
7 posts
  • Elite Author
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 2-3 years
  • Exclusive Author
  • Australia
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
SpaceheadConcepts says

Nice! How is the performance of the site though? I would imagine there would be a small performance hit on desktops because of the double loading?

I wrote a plugin for wordpress called Responsage. It’s all server side so it runs pretty awesome. You can check it out an example on the plugin site http://responsagewordpressplugin.com/demo/

Be sure to send your link when you share the code!

169 posts
  • United Kingdom
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Referred between 100 and 199 users
  • Bought between 10 and 49 items
mikedidthis says

Very nice indeed. I wish I could do server side stuff :(

The performance is pretty good. As the lower resolution image is already loaded, users mainly see the image becoming more clear, nothing more.

Will post the gist when I tidy it up a little. Its tumblr specific, for each image uploaded, tumblr offers a 250/400/500/1280px url :)

by
by
by
by
by
by