Site logo

Archived topic

CSS generateblocks

6 replies · Started by Anders Nielsen on November 14, 2020

Viewing posts 1–7 of 7

Hi

Does generateblocks generate one CSS file with all css..

Or does it create a css file pr. page/post? (which only loads on that page)

Hi there,

GenerateBlocks CSS is dynamic so it prints only the required CSS for each page/post.

So this css can be cached , i mean i am not a tech guy with , but it will call the css in every page load from Database ?

Yes, it can be cached.

To Note:
In the Dashboard > Settings > GenerateBlocks there are two CSS Print Method options to choose from:

1. External File
2. Inline

If changing those options you must click Regenerate CSS after.
We provide both options as some server configurations do not like External Files.

When it comes to caching the External File can be cached like any other file and as part of Combined CSS.
When using Inline most cache plugins provide options to Combine Inline CSS.

Ok, I used to inline all CSS using autoptimize...

As css files often are renderblocking.

Are generateblocks adding some king of preload, or other "tecnical stuff" to make it non render blocking?

Question II:

I can see the files are generated like: uploads/generateblocks/style-XXX.css

Is there a way I can Exclude CSS from Autoptimize, when the filesnames are changing?

It doesn't pre-load, but it can still be bundled using a plugin like Autoptimize. It simply adds an additional CSS file in the <head> with the necessary CSS.

I believe Autoptimize allows you to exclude folders, but I'm not 100% sure.

This archived topic is closed to new replies.