empty space
-
if I enable this plugin, instead of embed I’ve an empty space, an empty space
The page I need help with: [log in to see the link]
-
Can you share the URL where I can see the issue? I’m guessing there is a conflict with the lazy-load functionality.
https://www.eugenioruberto.it/la-parola-del-19-marzo-2025/
(now I’ve perfmatters plugin activated, maybe it?)
I see your site is using Perfmatters and that you have the “delayed scripts” functionality enabled.
You need to make sure you don’t delay
lazy-load.min.jswhich is output as an inline script module.This also goes for Optimization Detective’s logic which is also output as an inline script module.
We have an open issue to reach out to Perfmatters and WP Rocket to get them to not delay these scripts (assuming they have a denylist). If you can identify whether the issue is due to Perfmatters delaying the script that will be helpful.
I’m trying to disable Perfmatters plugin …
I’m looking at the page source and I’m not seeing anything from Embed Optimizer’s lazy-load.js. Namely, I would expect to see
application/vnd.embed-optimizer.javascriptappear somewhere, but I don’t.If you deactivate Perfmatters does this fix the problem?
perfmatters unistalled, and cache fully cleared
I’m looking at the page now and I do see the Embed block, but I’m seeing something very strange where the HTML is corrupted.
where there isn’t the embed, the right column show well
https://www.eugenioruberto.it/la-magia-del-centro-commerciale/
where there’s embed, right column disappear!
Yes, I see that something is corrupting the markup of the Embed block. There is no closing
</figure>tag, for example. And there is some script that is getting injected into a data attribute used by Optimization Detective:<figure class="wp-block-embed is-type-wp-embed is-provider-eugenio-ruberto wp-block-embed-eugenio-ruberto">
<div data-od-xpath="/HTML/BODY/DIV[@class='chariti-body-outer-wrapper '] !function(d,l){"use strict";l.querySelector&&d.addEventListener&&"undefined"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!/[^a-zA-Z0-9]/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),o=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),c=new RegExp("^https?:$","i"),i=0;i<o.length;i++)o[i].style.display="none";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute("style"),"height"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):"link"===t.message&&(r=new URL(s.getAttribute("src")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",function(){for(var e,t,s=l.querySelectorAll("iframe.wp-embedded-content"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute("data-secret"))||(t=Math.random().toString(36).substring(2,12),e.src+="#?secret="+t,e.setAttribute("data-secret",t)),e.contentWindow.postMessage({message:"ready",secret:t},"*")},!1)))}(window,document); </script> ' title="Codice da incorporare" class="input-embed input-embed-251480" readonly/>
</div>
<button class="copy-embed copy-embed-251480" title="Copia codice da incorporare" aria-label="Copia codice da incorporare"></button>
</div>
</div>
</div>
</div>
<div class="podcast_meta">
<aside>-
This reply was modified 1 year, 2 months ago by
Weston Ruter.
I have almost the same problem with Image Prioritizer (see my post https://ww.wp.xz.cn/support/topic/blank-page-328/)
Yes, because they both depend on Optimization Detective. Can you share the URL for where I can see the problem with Image Prioritizer?
if I enable image prioritizer, my blog is fully blank! (I’m on chat for fast testing)
Are you on WordPress Slack? You can DM me there.
We discovered the issue was with Aruba HiSpeed Cache’s HTML Optimizer. It is using regular expressions to attempt to strip out JS and CSS multi-line comments which results in a corrupted page. I’ve reported this in a support topic.
-
This reply was modified 1 year, 2 months ago by
The topic ‘empty space’ is closed to new replies.