PostLoadIMG - Kinoplay.me

12/04/2020, 4:12:32 AM

Author
Victor Data
Daily installs
0
Total installs
15
Ratings
0 0 0
Version
1.0
Created
2020-04-11
Updated
2020-04-11
License
N/A
Applies to

A simple solution that I use on the kinoplay.me website to upload images after the page loads.

Add a link to the image in the data-src attribute in the tag
And in the src = "" attribute, add a link to the stub, this script will download posters after the page is fully loaded, this will look good for users since the page performs a full load much faster


Tag example:
img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-src="https://kinoplay.me/uploads/posts/2020-04/1586098822_300x450.jpeg"/>