Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 65051

Only include required css on pages where block(s) appear?

$
0
0

Replies: 0

Hi, I’m seeing two stylesheets load on every page of my site, whether or not a Query Blocks post is active on the particular page:

<link rel='stylesheet' id='ptam-style-css-css'  href='https://site.com/wp-content/plugins/post-type-archive-mapping/dist/blocks.style.build.css?ver=all' type='text/css' media='all' />
<link rel='stylesheet' id='ptam-style-css-editor-css'  href='https://site.com/wp-content/plugins/post-type-archive-mapping/dist/blocks.editor.build.css?ver=all' type='text/css' media='all' />

The second one, ptam-style-css-editor, doesn’t seem like it should be included in the front-end at all; the first should only be included when a PTAM block is being displayed. Is this possible? I’m trying to speed up my site. Thank you!


Viewing all articles
Browse latest Browse all 65051

Trending Articles