groupboard / ytdefer Goto Github PK
View Code? Open in Web Editor NEWDeferred (lazy) loading of YouTube videos, to improve page load time
License: MIT License
Deferred (lazy) loading of YouTube videos, to improve page load time
License: MIT License
Is possible to make this also compatible with Vimeo videos?
Thank you.
See comment at #2
Hi
i am tried to multiple youtube div tags. when one is playing if open another one not stopping to play previous one
Each time you hover over the play button, a new play button image is loaded. Open Devtools, goto the Network tab, then hover over the play button to see how it gets added to the timeline and makes an additional request.
hello
Res maxresdefault is not always working, prefer using hqdefault
thanks,
Here's what I'm dealing with.
And I apologize for the irrational crazy demands that the ADA creates. The image now has an alt tag. The overall link has a title.
This is getting called out now:
This button element is empty and has no programmatically determined name.
A programmatically determined name allows screen readers to tell the user what the control does. To add a name do one of the following:
• Add text between the BUTTON start and end tags
• Add a TITLE attribute
• Add an ARIA-LABELLEDBY attribute (not supported in all screen readers)
• Add an ARIA-LABEL attribute (not supported in all screen readers)Here's the created button:
< button id="ytdefer_icon0" style= "background-image: url("data:image/svg+xml;base64, <<< Shortened >>> ;); position: absolute; border: 0px; background-color: transparent; left: 110px; top: 56.5px; width: 73px; height: 52px; pointer-events: none;"></ button >
I'd like to throw a title attribute in there.
Thanks!
`
Working on a site that is using a lazyload a little different than yours.
I'm getting dinged for no alt tag on the place holder image. I've looked at your js code and am trying to figure out where to add an alt=" Youtube Screenshot message"
Any suggestions?
Hi,
It's not working anymore on mobile WHEN I AM CALLING SOMEONE
PC : no problem
mobile : i click on play, then the video starts 1 seconde and it stops. I can't click one more time on any part of the video frame.
I can see this error in the chrome debugger on mobile :
www-widgetapi.js:1001 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('https://mywebsiteblablabla.fr').
it is only when i'm in a call.
thanks,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.