forked from filamentgroup/Responsive-Images
Permalink
Show file tree
Hide file tree
2 comments
on commit
sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
use tinySrc to generate scaled images based on client window
- Loading branch information
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30ebc7a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, im trying to use your solution, but i have a question...this works with images served by CDN? thanks in advance
30ebc7a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this only now. Sorry I missed it. I will reply for the benefit of future users.
The solution will work, but since the image is served by TinySrc and not by your CDN you lose the benefits of the CDN. What you should do is cache the rescaled image on your CDN instead. Of course it will not be a drop-in solution like this.