Support » Plugin: Page Speed Optimization » Iframe script dosn’t work under “proxy”

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author


    Hi Roycegracie,

    The plugin is not able to modify the contents of an iframe, however, it does provide a lazy script loading feature that makes it possible to hide scripts and iframes that are located below the fold.

    The option is located on the Javascript Optimization tab (Lazy Load Scripts).

    For example, to load a YouTube video when the user scrolls it in view, you could use the following code.

    <div data-lazy-widget><!–
    <iframe allowfullscreen=”” frameborder=”0″ height=”315″ src=”” width=”420″></iframe>

    If you need to load a video in the above the fold view then the only option is to optimize the video itself. For example, if you just need to display the preview image until the user clicks the play button, you could convert the iframe to a image that replaces itself with the iframe embed code when the user clicks on it. There may be other solutions.

    hello ! i have found my solution here:

    thank you again for this very good plugin !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Iframe script dosn’t work under “proxy”’ is closed to new replies.