Code Monkey home page Code Monkey logo

Comments (5)

reganlawton avatar reganlawton commented on June 15, 2024 1

I'd raise this on the embed/embed package this is where those fields come from

from oembed.

TUSAB-web avatar TUSAB-web commented on June 15, 2024

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.

reganlawton avatar reganlawton commented on June 15, 2024

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.

TUSAB-web avatar TUSAB-web commented on June 15, 2024

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.

reganlawton avatar reganlawton commented on June 15, 2024

No issues I'll close the issue for now but glad I could provide you the information you need.

from oembed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.