docs(youtube-player): update loading example to avoid loading API multiple times#20767
Conversation
…tiple times Adds some extra logic to the asynchronous loading example that illustrates how to avoid adding the API multiple times.
|
Hi @crisbeto . Thanks for doing this. I was planning to get to this PR, then work picked up a lot (still pretty busy but I had a chance to come see if anything had happened here!) I'm slightly concerned that unless I'm missing something, this doesn't actually seem to fix #20644 or point the implementer in the right direction. I think you're right in terms of cleaning up the example (my proposed solution definitely had a bit of code smell...) - but perhaps where we initiate the variable a comment of I dunno. Maybe as-is is enough. Would be curious to hear your thoughts. |
|
@mbtestfeed the scope in which we have the |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |


Adds some extra logic to the asynchronous loading example that illustrates how to avoid adding the API multiple times.