Anatoliy
Well-known member
I want the full size images from posts to be sized properly for visitors devices, so mobile visitors would not download 2000px wide pictures (1Mb) that will be scaled by their browsers to 400px. I understand that xenForo doesn't provide such an option, so I found an online service that do just that - takes an original picture, creates on the fly appropriate copies for different devices, and serve them using their CDN network.
It requires from my side to insert in my pages javascript and then to reference to images like so:
Please advice what template should I modify?
It requires from my side to insert in my pages javascript and then to reference to images like so:
<img class="someclass" data-src="image:athtoimage.jpg">
.Please advice what template should I modify?
Last edited: