Closed SoftCreatR closed 1 year ago
Not a bad idea, but that feature is still listed by Mozilla as experimental and subject to change. I'd wait until it's more widely supported.
But there's no downside, when implementing it, even if not all Browsers support it yet.
Actually, there's quite a bit of downside, including:
loading
varies from the current versionAnd so on. I've been around long enough to have been bitten by this before, I will wait until the feature is more mature. But it's good to see this feature is in the works. Thanks for the suggestion.
That's why I've suggested to make this optional ;) Alternatively, you could just add the possibility for developers to add custom properties to the generated iframes.
Alternatively, you could just add the possibility for developers to add custom properties to the generated iframes.
This might be worth thinking about. It could eventually reduce the maintainership burden on PDFObject. People ask for a new embed/iframe property, and you can tell them to feel free to pass it raw on their own.
That's what I thought.
I'll reopen as a feature request for ability to add attributes to the embed/iframe elements.
Resolved with 2.2.9 release
It would be nice, if we could optionally set the
loading
-attribute to generated iframes for lazy loading.See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe?retiredLocale=de#attr-loading