wp-rocket icon indicating copy to clipboard operation
wp-rocket copied to clipboard

Replace Youtube Iframe with preview image is breaking the play-on-page video: The iframe displays a 153 error.

Open Adrianadla opened this issue 1 month ago • 4 comments

Describe the bug When the Lazyload Feature: Replace Youtube Iframe with preview image Is on, the video does not load, on page, and display: 153 error.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'This page'
  2. Click on 'Youtube video'
  3. See error: 153 error
  4. If Replace Youtube Iframe with preview image is off, the Issue can not be replicated. I'm asking the customer to keep it on for investigation purposes, but the credentials are in the ticket (in case the customer turns it off)
  5. With the feature turned On, we can see this attribute removed: referrerpolicy="strict-origin-when-cross-origin" turning Off, the attribute is back to the Iframe: Screenshot

Expected behavior The video should play without errors on the page, as it appears when the feature is turned off or bypassing WP Rocket ?nowprocket. The feature: Replace Youtube Iframe with preview image, should not remove attribute: referrerpolicy="strict-origin-when-cross-origin"

Screenshots

Image

https://imgur.com/1onyMzO

Desktop (please complete the following information):

  • OS: All
  • Browser: All
  • Version: All

Smartphone (please complete the following information):

  • Device: All
  • OS: All
  • Browser : All
  • Version: All

Additional context Slack thread: https://group-onecom.slack.com/archives/C08EFUGUH5G/p1762174563310589

Adrianadla avatar Nov 03 '25 14:11 Adrianadla

Related: https://secure.helpscout.net/conversation/3139693108/600157

joejoe04 avatar Nov 14 '25 15:11 joejoe04

Related: https://secure.helpscout.net/conversation/3144270958/601438

mifrero avatar Nov 19 '25 14:11 mifrero

We've had to turn the feature off for now - "Replace Youtube Iframe with preview image is off" because videos arent playable.

vikasnangia avatar Nov 20 '25 07:11 vikasnangia

Related: https://secure.helpscout.net/conversation/3145331076/601770?viewId=3572910

juricazuanovic avatar Nov 20 '25 17:11 juricazuanovic