Archived topic
Empty spacing in code from Gutenberg.
11 replies · Started by Franklin on August 25, 2019
Hi,
Do you guy know why or having anything that will fix all the empty spacing issues on the theme?
Here: http://prntscr.com/ox94kr
Ive done a bunch of testing and if i use the classic editor with generate press there is no space and the code is normal As soon as gutenberg is used the code is a complete mess.
It just create huge amounts of empty space that takes longer to load.
Ive check some of my other sites using other theme and there is no empty space while using gutenberg.
This is my other blog and it's clean. http://prntscr.com/ox99bp
It would be good to get a solution because my loading time has pretty much doubled. The code just goes crazy. one 1 article I had 400 lines of code with the classic editor then as soon as I use gutenberg it does to well over 1600 lines.
Thanks.
Hi there,
thats peculiar - not experienced the problem, a similar issue existed in the early release of gutenberg but was fixed. Which version of WP are you using?
Everything it up to date on my site including wordpress.
And when the site loads its getting stuck on one of the spaces http://prntscr.com/oxdy27
Wasn't doing that when I was on the classic editor. Have also been dropping in Google rankings.
Have you tried disabling plugins and any custom functions?
Hey, yeap i've done all that. I spoke to a friend today who is also using generate press to check with him and he's also having the issue.
Can you link me to the site ?
Homepage is a page builder but here is a inner page with the issue.
Is that an HTML block in Gutenberg?
If so, do the spaces only appear after you save and refresh the editor?
Ah I ended up just changing back to classic. gutenberg injects 100s of these <!-- wp:paragraph -->
That's whats cause the issue. Just unnecessary code that doesn't need to be there and it;s causing all the white space.
Those HTML comments are only for Gutenberg to know certain data. They shouldn't be on the front-end and they shouldn't cause any additional spacing.
Yea not sure but they are causing a lot of issue and spacing so changed back to classic.