Recently, I was given a design that requires a background video to load on the home page. Although I understand that this goes against best practices, the client has approved the design and now I need to come up with a solution. The video is already in place and working smoothly.
In addition, I have been tasked with ensuring that the video only loads once for each user visit. If they navigate away from the home page and then return, the video should not play again. I've looked around online but can't seem to find any examples of how to achieve this. Can anyone suggest a potential solution or point me towards some helpful documentation?
The website is built using HTML, CSS, and JQuery. While I don't have any code available to share at the moment, I would greatly appreciate any suggestions you may have. Thank you in advance to anyone who comes across this post.