Skip to content

Fixes JS Render Blocking#34

Merged
colbyfayock merged 3 commits intomainfrom
bug/30-script-loading
Oct 1, 2024
Merged

Fixes JS Render Blocking#34
colbyfayock merged 3 commits intomainfrom
bug/30-script-loading

Conversation

@colbyfayock
Copy link
Copy Markdown
Collaborator

@colbyfayock colbyfayock commented Sep 30, 2024

Description

Updates the CldVideoPlayer and CldUploadWidget components to dynamically load the external scripts to allow for asynchronous loading while being able to easily detect when the script has actually loaded.

It seems this isn't easily possible without some sort of polling solution with the native <script> tag to take advantage of async loading strategy.

This also adds some dev warnings to amke it easier to debug why it may not have loaded, including not nesting a inside of CldUploadWidget.

Issue Ticket Number

Fixes #30

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Fix or improve the documentation
  • This change requires a documentation update

Checklist

  • I have followed the contributing guidelines of this project as mentioned in CONTRIBUTING.md
  • I have created an issue ticket for this PR
  • I have checked to ensure there aren't other open Pull Requests for the same update/change?
  • I have performed a self-review of my own code
  • I have run tests locally to ensure they all pass
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes needed to the documentation

@vercel
Copy link
Copy Markdown

vercel bot commented Sep 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
astro-cloudinary ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 1, 2024 0:39am
@colbyfayock colbyfayock merged commit eb3a8ff into main Oct 1, 2024
@colbyfayock colbyfayock deleted the bug/30-script-loading branch October 1, 2024 17:28
github-actions bot pushed a commit that referenced this pull request Oct 1, 2024
# [1.1.0](v1.0.7...v1.1.0) (2024-10-01)

### Features

* Fixes JS Render Blocking ([#34](#34)) ([eb3a8ff](eb3a8ff))
@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 1, 2024

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants