Delay loading iframe

/, Wordpress/Delay loading iframe

Delay loading iframe

The iframe tag creates a window that is inside a regular document, and it allows you to load any other independent documents into the specified size. Since it is loaded from an external source, naturally it affects the page loading speed. Alternatively, you can postpone the loading of the iframe window for some time so that the page loads faster, thereby increasing its pagespeed performance.

So, the code:

In the right place of the site set the frame with an empty src value.
Next, in footer.php of your theme, you need to copy this script:

5000 – this is the delay in milliseconds.

By |2019-03-26T00:54:33+00:00March 21st, 2019|Useful hooks, Wordpress|0 Comments

About the Author:

I web developer specializing in developing websites for small to medium business, and from simple blog to a multi-level online shop on Wordpress, Joomla and other CMS. I develop responsive websites using the most current technologies in development sites. My previous work experience provided me with self-discipline, perseverance, thinking outside the box, and leadership skills that allow me to effectively communicate with others to achieve our goals. My clients are always 100% satisfied. I am a fast learner. I am one of those who enjoys challenges and thrives in a fast paced, goal oriented environment. Currently have experience working with PHP, HTML, CSS, JavaScript, jQuery, Wordpress, Drupal, Joomla.

Leave A Comment