I have a vlog site where I used youtube iframes of my videos. Naturally, this isn’t quite the best thing for my page performance.
After a quick search the solution seems simple: facade load the iframes.
Now, I’d love to use this git repo [https://github.com/vb/lazyframe?tab=readme-ov-file](https://github.com/vb/lazyframe?tab=readme-ov-file) – however, I can’t get my head around on how to install the package on wordpress.
Is that even possible?
I’m still a relative beginner when it comes to adding git to wp, but I have experience with wp-cli & php.
How can I use npm to extract the repo in my wp directory? Or is this not necessary and I only need to enqueue the script and the css?
Few questions came up while trying and figuring things out:
1. Do I keep git repos locally and unpack them or do I upload the folder and unpack it via ssh?
2. Is there a direct connection to git (I’ve read about .phar archives – only possible if the git author enabled it?)?
TL;DR want to install lazyframe git repo in wp. Don’t know how.
Every help to untie this knot in my head very much appreciated!
[ad_2]