Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Loading backend styles in frontend: Unusable with Gutenberg 7.5 AND performance/GDPR issue #268

Closed
mariohamann opened this issue Feb 14, 2020 · 3 comments

Comments

@mariohamann
Copy link

mariohamann commented Feb 14, 2020

  1. I created a completely clean WordPress-Website.
  2. I created a new block with create-guten-block: It loads all backend styles. -> Performance problem. Even a Google font style is being loaded and that's a real problem for GDPR.
  3. I installed Gutenberg 7.5: Backend styles are loaded and there is a new backend-style for mobile devices:
html {
    position: fixed;
    width: 100%;
}

-> EVERY website with create-guten-block and Gutenberg 7.5 can't be scrolled on mobile

Without cgb-block:
without-block-suite

With cgb-block
with-block-suite

I can confirm for every website, every theme and every block I created with cgb and with Gutenberg 7.5.
Issue in Gutenberg github: WordPress/gutenberg#20214

@ahmadawais
Copy link
Owner

CGB gives you the code, you can edit all of it. If you can improve it, send in a PR. @asharirfan look into this.

@mariohamann
Copy link
Author

mariohamann commented Feb 14, 2020

I think it seems to relate to #210 and #267. (Didn't see it earlier, I'm sorry.)

Edit: Seems to be fixed, thank you, @Connum and @ahmadawais!

@ahmadawais
Copy link
Owner

This issue must have been solved via #267.

Successfully published:

  • cgb-scripts@1.23.0
  • create-guten-block@1.14.0

You do have to manually update the init.php file like this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants