Hello everyone,
I am here today to show you a way to deal with lazy loading embedded videos from YouTube, without using a plugin.
Why not using a plugin?
Just because they are built to load on every page/post of your site.
It is not a sure way that the developers of the plugin to know when it is needed or not.
This is why the plugins are loaded all together (unless you're using a plugin organizer)
making your site slower.
Remember the training - do not use plugins unless really necessary!!!
They increase the loading time of your page, as simple as that :)
Before proceeding with the following, please not forgrt to backup your site!
This is very important, go to tools-export-all content and save the backup file ;)
Thank you for remininding me about this ChrystopherJ
Okay, let's move on to the other solution ...
I am not exactly sure where, though I believe the answer is in this statement "You’ll want to add this to a .js file and enqueue it along with the rest of your Javascript files in functions.php."
But a screenshot on this may help the less tech-savvy people on knowing where to add the codes.
Molly G