-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
does not work on mobile #163
Comments
Have you tried tapping on the thumbnail twice as per #149? Does https://github.com/i1li/lightest-youtube-embed perform well in a comparison like this one? |
I just went back and looked at the deploy where this happened, it was actually caused by CSP blocking youtube.com/iframe_api (“script-src”), because I only had youtube-nocookie.com added to the CSP. My fault, but i'll leave this in case someone else is searching with that problem. The comparison with thumbnail loading is going to be the same, but lightest-youtube-embed eliminates the need for thumbnails, enabling an infinite amount of embeds on a page with no connections at all until clicked. With autoplay turned on there is no thumbnail loaded even after the user clicks to show the video. Ultimately I was less concerned about thumbnails and more about removing the need for the Youtube API altogether. lightest-youtube-embed enables more dynamic placement, including embeds to be inline along text in a paragraph just like a hyperlink. its also more responsive than lite-youtube-embed, and in under 100 lines of code total. I appreciate Paul sharing his work, and the similar projects, like lazyframe. i'll look at making a companion script that fetches and saves titles and thumbnails locally once, as a final way to minimize all unnecessary user connections |
it just loads the thumbnail and no video on mobile
edit: fixed https://github.com/i1li/lightest-youtube-embed
The text was updated successfully, but these errors were encountered: