I came across the www.pepsi.com website on my iPhone, and noticed that a video background loads perfectly on mobile, and the site isn’t even huge. I was under the impression that video backgrounds were not supported by mobile browsers.
I notice their source code is made up almost entirely of javascript. Does anyone have any insight on how this could have been done?
I am not sure what you are talking about because the link does not properly display on android mobile devices, so it may be difficult for anyone to give you any help. I suppose you could convert a short video to a gif since it will run on any device.