Comments (5)
I'd raise this on the embed/embed
package this is where those fields come from
from oembed.
I wanted to mention one thing I did: I downloaded the wordsmith plugin which has a “youtubeId” parsing so you can do:
{{ entry.field.media.url | youtubeId }} to pull that part. My page loads a bit slow with this, but I don’t know if it’s the oEmbed plugin, the wordsmith plugin, or something else.....
I use this embed method which really speeds up page load: https://css-tricks.com/lazy-load-embedded-youtube-videos/
There are similar ones out there, and having direct access to that media.id seems to be the key to inserting it.
from oembed.
oEmbed uses embed/embed
which fetches the data using a network request so that's why its slow this can be improved by using the "Caching" option in the plugin's settings. This should still work with wordsmith, in future their is an idea to make the plugin cache the last fetched / "on saved" snapshot of the object to help with speed and if the service website is down for some unknown reason.
from oembed.
That’s very helpful information as I figure out when to use the plugin and when to just use a URL field - weigh performance vs the features I need in each case. Thanks!
from oembed.
No issues I'll close the issue for now but glad I could provide you the information you need.
from oembed.
Related Issues (20)
- Unable to set a webpage as a valid source URL (fallback to iframe) since v1.3.11 HOT 5
- Does this plugin still work? HOT 10
- Exception thrown with Caching turned on HOT 10
- YouTube embeds just stopped working recently HOT 2
- Required field isn't verified on entry save HOT 7
- Craft 4? HOT 13
- 2.0.0 breaks under Craft 3.7.44 and PHP 7.4.3 HOT 4
- Enabling the cache breaks the plugin under PHP 8.1+ HOT 7
- Serialization of 'DOMDocument' is not allowed HOT 14
- FallbackAdapter is not handled correctly due to #101 fix HOT 5
- Loss of metadata when loading from cache on 2.2.x HOT 2
- Youtube embed stopped working HOT 7
- Error when using entry.field.media.image HOT 15
- oEmbed Stopped Pulling Data HOT 5
- Broken URL notifications not working on Craft 4 HOT 3
- Craft 4 embeds suddenly default to 200px wide iframe HOT 10
- Spotify embeds are only working in local environment HOT 1
- "Please check your URL" bug is back? HOT 20
- Cache tweets HOT 2
- Further changes required for GDPR compliance HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oembed.