Minify MonsterInsight inline javascript and schema.org
-
I wish LiteSpeed would minify monsterInsight’s inline javascript when minify inline-js is enabled. It would also be nice if schema markup was minifyed on the fly if minify html is enabled 🙂
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
-
Hi,
Could you please specify what exactly do you mean by “schema markup” ?
Best regards,
This is what the markup created by RankMath looks like on a catched page.
<script type="application/ld+json" class="rank-math-schema">{ "@context": "https://schema.org", "@graph": [ { "@type": "Plumber", "@id": "https://malardalenvvs.se/#organization", "name": "M\u00e4lardalen VVS", "url": "https://malardalenvvs.se", "email": "[email protected]", "address": { "@type": "PostalAddress", "streetAddress": "Berglundav\u00e4gen 1G", "addressRegion": "\u00d6rebro", "postalCode": "702 36", "addressCountry": "Sverige" }, "geo": { "@type": "GeoCoordinates", "latitude": "59.238732", "longitude": " 15.123830" }, "hasMap": "https://www.google.com/maps/search/?api=1&query=59.238732, 15.123830", "openingHours": [ "Monday,Tuesday,Wednesday,Thursday,Friday 07:00-18:00" ], "priceRange": "$", "image": "https://malardalenvvs.se/wp-content/uploads/2019/08/Malardalenvvs_logga.jpg", "telephone": "+4619102022" }, { "@type": "WebSite", "@id": "https://malardalenvvs.se/#website", "url": "https://malardalenvvs.se", "name": "M\u00e4lardalen VVS", "publisher": { "@id": "https://malardalenvvs.se/#organization" }, "inLanguage": "sv-SE", "potentialAction": { "@type": "SearchAction", "target": "https://malardalenvvs.se/?s={search_term_string}", "query-input": "required name=search_term_string" } }, { "@type": "ImageObject", "@id": "https://malardalenvvs.se/#primaryImage", "url": "https://malardalenvvs.se/wp-content/uploads/2019/08/daikin_varmepump_1920-1-1024x683.jpg", "width": 200, "height": 200 }, { "@type": "WebPage", "@id": "https://malardalenvvs.se/#webpage", "url": "https://malardalenvvs.se/", "name": "M\u00e4lardalen VVS - Serviceinriktade r\u00f6rmokare i \u00d6rebro med omnejd", "datePublished": "2019-08-15T19:48:05+02:00", "dateModified": "2020-09-29T18:48:42+02:00", "isPartOf": { "@id": "https://malardalenvvs.se/#website" }, "primaryImageOfPage": { "@id": "https://malardalenvvs.se/#primaryImage" }, "inLanguage": "sv-SE" }, { "@type": "Article", "headline": "M\u00e4lardalen VVS - Serviceinriktade r\u00f6rmokare i \u00d6rebro med omnejd", "datePublished": "2019-08-15CEST19:48:05+02:00", "dateModified": "2020-09-29CEST18:48:42+02:00", "author": { "@type": "Person", "name": "M\u00e4lardalen VVS" }, "description": "M\u00e4lardalen VVS \u00d6rebro erbjuder r\u00f6rmokare, v\u00e4rmepumpar, avloppsrensning, badrumsrenovering och entreprenad. M\u00e4lardalen VVS \u00e4r verksamma i \u00d6rebro med omnejd.", "@id": "https://malardalenvvs.se/#schema-7200", "isPartOf": { "@id": "https://malardalenvvs.se/#webpage" }, "publisher": { "@id": "https://malardalenvvs.se/#organization" }, "image": { "@id": "https://malardalenvvs.se/#primaryImage" }, "inLanguage": "sv-SE", "mainEntityOfPage": { "@id": "https://malardalenvvs.se/#webpage" } } ] }And MonsterInsight appear to have been fixed with the latest version relased
Hi,
in your code
<script type=”application/ld+json”
this is JSON data ,instead of javascript , therefore LSCWP won’t and can’t minify it.
Best regards,
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Minify MonsterInsight inline javascript and schema.org’ is closed to new replies.