Javier Alejandro
Javier Alejandro

Reputation: 306

how can i improve performance on github pages?

i'm hosting a page built on react on github pages, my problem is that im displaying a video and it affects performance. Should i buy a cdn to serve videos or images, or i should change server and still serving static content? The cdn would help or github pages it's slow anyway ?

Upvotes: 1

Views: 1026

Answers (1)

Bryce Blankinship
Bryce Blankinship

Reputation: 31

How are you embedding the video? If you embed the video via Youtube it should select a quality low enough to suit faster loading times, otherwise you can try lazy-loading=true in the video tag, and maybe async if you're pulling it from another source. Otherwise you'll find the most impact in performance is to limit the amount of data the client has to download by compressing the video.

Upvotes: 2

Related Questions