WordPress.org

Ready to get started?Download WordPress

Forums

WP-HTML-Compression
[resolved] Causes issue with data: URIs (6 posts)

  1. Dave Ross
    Member
    Posted 1 year ago #

    I switched some SVG images on my site to use data URIs instead of loading the images directly. WP-HTML-Compression was inserting a slash in front of the MIME type, causing the images not to display.

    So instead of:
    data:image/svg+xml;base64,mZiIvPjwvZz…

    I got:
    data:/image/svg+xml;base64,mZiIvPjwvZz…

    I worked around it with "no compression" comments, but it would be great if your plugin could sniff out data: URIs and leave them alone.

    Thanks!

    http://wordpress.org/extend/plugins/wp-html-compression/

  2. Steven Vachon
    Member
    Plugin Author

    Posted 1 year ago #

    Interesting. I'll look into it!

  3. Dave Ross
    Member
    Posted 1 year ago #

    Cool :)

  4. Steven Vachon
    Member
    Plugin Author

    Posted 1 year ago #

    Fixed in v0.5.5

  5. Dave Ross
    Member
    Posted 1 year ago #

    Works great. Thanks so much!

  6. Steven Vachon
    Member
    Plugin Author

    Posted 1 year ago #

    No problem. Thanks for reporting :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic