Category: Apply to
Learn how to embed YouTube videos responsively and without increasing the page load time. The embeds are light and mobile friendly and the YouTube player is loaded only when the user initiates the …
Source: A Better Method for Embedding YouTube Videos on your Website
Add another empty parameter src=””. This replaces the src we just changed to data-src Your should look something like this now: THE JAVASCRIPT The we set up by itself won’t load the video correctly. We’ll use some JavaScript to get it to load correctly. function init() { var vidDefer = document.getElementsByTagName(‘iframe’); for (var i=0;
Source: Defer Parsing of JavaScript With YouTube Videos – Scott DeLuzio
Source: Monosnap
Collect Images JS
<script type="text/javascript">
function img_find() {
var imgs = document.getElementsByTagName("img");
var imgSrcs = [];
for (var i = 0; i < imgs.length; i++) {
imgSrcs.push( imgs[i].src);
}
return imgSrcs;
}
</script>
wp import test.xml –authors=create
Source: WP-CLI – Advanced WordPress Management — Smashing Magazine