Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use react lazy to break js files into smaller chunks & remove videojs in favor of hls.js #10431

Merged
merged 10 commits into from
Mar 13, 2024

Conversation

NickM-27
Copy link
Sponsor Collaborator

The web code was in a single 5MB file, this change breaks pages into separate files by signaling react to lazy load them

Secondly, this PR removes videojs which had a massive size and replaces it with using native html5 when possible and falling back to hls.js

This should significantly decrease initial page load time and the native hls player seems to be faster as well.

Copy link

netlify bot commented Mar 13, 2024

Deploy Preview for frigate-docs canceled.

Name Link
🔨 Latest commit d8129cc
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/65f20b30c0ab690008812947

@hawkeye217 hawkeye217 merged commit f9ed082 into dev Mar 13, 2024
12 checks passed
@hawkeye217 hawkeye217 deleted the new-hls branch March 13, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants