Hashnode / Hashnode/webembeds

Update workflow

Offen
#3 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
JavaScript
Sterne
30
Forks
7
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Currently the flow is like this.
In `WebembedHandler`
1. Tries to detect provider from the list and run `oembed.fetch` of `oembed` lib
2. If above fails, it then tries to fetch data manually either from parent class Platform or a customClass which respect additional props support in providers list
3. If either of them fail, it will generate a fallback

There is a lot of scope to refactor this to make it work faster during this process.

For example, we can make only one request to final targetURL and reuse it from step 1 to 3.
Feel free to suggest alternative ideas

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.