• Resolved C13

    (@c13creative)


    So this is a weird one.

    When lazy-load is on, certain images on my site are loaded multiple times, but with different, invalid URLs. Check out the waterfall on the linked GTmetrix report to see what I mean.

    It looks like it might be rewriting the URL to serve it on ShortPixel, but doesn’t replace ‘mydomain.com’ with ‘cdn.shortpixel.ai/client/q_lossless,ret_img/’.

    To make it even more frustrating, I can’t get this issue to appear consistently across different servers/browsers; the bug appears consistently on GTmetrix and Pingdom, but only occasionally on my PC with Firefox, and never on PageSpeed Insights.

    I recently updated to WP 5.5, but can’t say for certain if that is related. Installing ‘Enable jQuery Migrate Helper’ didn’t fix the issue.

    The page I need help with: [log in to see the link]

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

    (@optimizingmatters)

    this is likely due to html-encoded apostrophe’s around the background-image in your HTML, e.g. ;

    <div class="flip-box-front" style="background-color:#cedc00;border-color:rgba(0,0,0,0);color:#ffffff;transition-duration:0.4s;background-image: url('https://c13creative.com/clubgsl/wp-content/uploads/2020/08/GSL_boys-green-1024x1024.jpg');">

    can you try making those single quotes instead;
    <div class="flip-box-front" style="background-color:#cedc00;border-color:rgba(0,0,0,0);color:#ffffff;transition-duration:0.4s;background-image: url('https://c13creative.com/clubgsl/wp-content/uploads/2020/08/GSL_boys-green-1024x1024.jpg');">

    frank

    Thread Starter C13

    (@c13creative)

    Thank you for the quick reply. I’ll ask the theme dev about that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Lazy-Load Causing Strange URL Rewritting and 404 Errors’ is closed to new replies.