CDN issue
-
my CSS is being loaded from a CDN.
Non of my amp pages are working when I do this and I get the following error:
The style[amp-custom] element is populated with:
0 B: style[amp-custom=]
73 B (57%): link#amp-default-css[rel=stylesheet][id=amp-default-css][href=https://sheffield.bigstamp.co.uk/wp-content/plugins/amp/assets/css/amp-default.css?ver=1.1.3][type=text/css][media=all]
34528 B (88%): link#dashicons-css[rel=stylesheet][id=dashicons-css][href=https://sheffield.bigstamp.co.uk/wp-includes/css/dashicons.min.css?ver=5.2.1][type=text/css][media=all]
223 B (0%): link#bp-nouveau-css[rel=stylesheet][id=bp-nouveau-css][href=https://sheffield.bigstamp.co.uk/wp-content/plugins/buddypress/bp-templates/bp-nouveau/css/buddypress.min.css?ver=4.3.0][type=text/css][media=screen]
1671 B (34%): link#td-plugin-newsletter-css[rel=stylesheet][id=td-plugin-newsletter-css][href=https://sheffield.bigstamp.co.uk/wp-content/plugins/td-newsletter/style.css?ver=9.7.3][type=text/css][media=all]
2047 B (57%): link#td-theme-amp-css[rel=stylesheet][id=td-theme-amp-css][href=https://sheffield.bigstamp.co.uk/wp-content/plugins/td-composer/mobile/style-amp.css?ver=9.7.3][type=text/css][media=all]
29 B: style[type=text/css]
74 B: h2.amp-wp-b371fd6[class=amp-wp-b371fd6]
97 B: span.amp-wp-dffa517[class=amp-wp-dffa517]
75 B: div.td-author-name vcard author amp-wp-9c76635[class=td-author-name vcard author amp-wp-9c76635]
75 B: p.amp-wp-224b51a[class=amp-wp-224b51a]
93 B: amp-iframe.amp-wp-b3bfe1b[src=https://www.googletagmanager.com/ns.html?id=GTM-TD2R4HW][height=400][sandbox=allow-scripts allow-same-origin][layout=fixed-height][class=amp-wp-b3bfe1b]
Total included size: 38,985 bytes (48% of 80,016 total after tree shaking)The following stylesheets are too large to be included in style[amp-custom]:
25439 B (45%): link#td-theme-css[rel=stylesheet][id=td-theme-css][href=https://sheffield.bigstamp.co.uk/wp-content/plugins/td-composer/mobile/style.css?ver=9.7.3][type=text/css][media=all]
Total excluded size: 25,439 bytes (45% of 55,892 total after tree shaking)Total combined size: 64,424 bytes (47% of 135,908 total after tree shaking)
If I don’t serve via the CDN everthing works fine.
I’ve tried a few different plugins to see whether it was an issue with litespeed and i get the same problem with all the other CDN plugins.
The topic ‘CDN issue’ is closed to new replies.