{"id":8737825,"date":"2017-02-04T12:40:19","date_gmt":"2017-02-04T12:40:19","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/cdn-with-multiple-background-images\/"},"modified":"2017-02-04T12:40:19","modified_gmt":"2017-02-04T12:40:19","slug":"cdn-with-multiple-background-images","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/cdn-with-multiple-background-images\/","title":{"rendered":"CDN with multiple background images."},"content":{"rendered":"<p>Hey,<\/p>\n<p>Awesome plugin. It &#8220;just worked&#8221; except for one little thing. I have multiple background images defined in CSS like this:<\/p>\n<p><code>background-image: url(&quot;images\/under-left-leaf.png&quot;), url(&quot;images\/over-blue-bird.png&quot;), url(&quot;images\/under-top.png&quot;), url(&quot;images\/bg-top-grunge.png&quot;);<\/code><\/p>\n<p>After this goes through autoptimize it only applies the CDN to the first image, like this ( <code>theme-cdn.dtbaker.net<\/code> is the CDN address, <code>verge-blog-demo.themes.dtbaker.net<\/code> is the hostname )<\/p>\n<p><code>background-image:url(https:\/\/theme-cdn.dtbaker.net\/wp-content\/themes\/verge-blog\/images\/under-left-leaf.png),url(\/\/verge-blog-demo.themes.dtbaker.net\/wp-content\/themes\/verge-blog\/images\/over-blue-bird.png),url(\/\/verge-blog-demo.themes.dtbaker.net\/wp-content\/themes\/verge-blog\/images\/under-top.png),url(\/\/verge-blog-demo.themes.dtbaker.net\/wp-content\/themes\/verge-blog\/images\/bg-top-grunge.png);<\/code><\/p>\n<p>Do you accept pull requests via github? I could submit a patch if you like.<\/p>\n<p>Thanks,<br \/>\ndtbaker<\/p>\n","protected":false},"template":"","class_list":["post-8737825","topic","type-topic","status-publish","hentry","topic-tag-cdn"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8737825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8737825\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8737825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}