I followed documentation for lazy posters on HTML5 Videos, replacing 'poster' to 'data-poster' along with .lazy and it works on desktop Firefox and desktop Safari, however mobile Safari does not follow lazy loading and rather doesn't load posters beyond what is shown on phone viewport. Running web inspector on iPhone shows error being thrown "Failed to load resource: the server responded with a status of 404 ()" attributed to file "fullvid.js".
I am able to tweak file fullvid.js (line 55) and get working by changing:
var placeholderImg = elVideo.getAttribute('poster');
to
var placeholderImg = elVideo.getAttribute('poster') || elVideo.getAttribute('data-poster');
Is this the method to solve or is there a better way?
Issue page on mobile Safari (with lazy loading posters):
https://www.aaronbonine.com/portfolio-wildlife-lazy-posters.html
Working page (without lazy loading posters):
https://www.aaronbonine.com/portfolio-wildlife-no-lazy-posters.html
