Installing youtube iframe facade from git – HOW?

[ad_1]

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer