-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
HTML Compressor unable to compress application/ld+json #467
Comments
@isaumya If you'd like that script to be compressed, I recommend compressing it before adding it to your function. You can use a tool like this: http://jsfail.com/tools/JsonMinify.html {"@context":"http://schema.org","@type":"WebSite","url":"https://www.isaumya.com/","potentialAction":{"@type":"SearchAction","target":"https://www.isaumya.com/?s={search_term}","query-input":"required name=search_term"},"creator":{"@type":"Person","name":"Saumya Majumder","url":"https://www.isaumya.com","sameAs":["https://www.facebook.com/iamSaumya","https://twitter.com/iSaumya","https://github.com/isaumya","https://plus.google.com/+SaumyaMajumder","http://in.linkedin.com/in/saumyamajumder","https://www.youtube.com/user/iSaumyaM"],"makesOffer":{"@type":"Offer","itemOffered":[{"@type":"Product","name":"Web Development"},{"@type":"Product","name":"WordPress Optimization"},{"@type":"Product","name":"Fusioninvoice Customization"},{"@type":"Product","name":"Web Consultation"},{"@type":"Product","name":"Search Engine Optimization"},{"@type":"Product","name":"WordPress Customization"}]}}} |
Thank you @raamdev for opening the feature request. Looking forward to it. |
Hi, recently I've discovered a slight pitfall of Zencache Pro HTML Compressor with
<script type="application/ld+json">
internal script tag. Beside I must admit that this is the best HTML compressor I've ever seen or used anywhere else. Anyways, in my site I useapplication/ld+json
tag for some schema.org markups and hense I've created this small function:Now this is working fine but after activating HTML Compressor of Zencache pro if you check the source code of the site, you will see that everything is properly compressed except that
<script type="application/ld+json">
. Here is a screenshot:Looking forward to hear your insight on this.
The text was updated successfully, but these errors were encountered: