Archived topic
Edit Post with GenerateBlocks need several seconds to load
11 replies · Started by Aris on July 27, 2021
Hello,
I have a blog with posts and I use GeneratePress theme with GenerateBlocks. I have noticed that for every image that I use in gallery the following request is created when I try to edit the post “/wp-json/wp/v2/media/4119?context=edit&_locale=user”.
In a post with 30 images all these requests are pending until receive the response from the server and really slow down the process. If I disable the GenerateBlocks the edit of the post loaded much faster.
I can understand that is relevant also with the server speed but a single post with few images and only Generatepress and GenerateBlocks enable need several seconds to load
Hi there,
is it possible to get temporary admin access and a link to that post so i can take a closer look ?
Hello David,
I have attached the details in the private area.
Thank you.
Can you exit editing that post ?
Yes of course
I checked it across all main browsers and to be honest i didn't notice any real difference to opening just an empty post.
Which would point the finger at being a local issue.
What happens if you open the post in an Incognito/Private browser ? As this should load without caching or browser extensions.
If you open the Network under inspect (I am using chrome) and make a refresh on the page, you can see the requests keeps loading in the background. You can add "/wp/v2" to filter the results.
Note that the page seems fully loaded but the requests are pending. They need about 14 seconds until all the requests get finished.
We have also tested with different browsers
Can you confirm that link is still available as its just timing out on me.
Also whilst you check that - are you using any Reusable blocks on the post ?
Yes, the link is still available. Try to use the http version instead https.
We don't use any Reusable blocks on Posts
I have the same issue with http and https. :(
Lets try a different post. I have added a new link in the private area but you can try with any link from posts. :)
I had to log in over HTTPS as my network wouldn't allow it.
First off the editor loads just fine, theres no real delay between the editor loading and the screen being updated or interactive. Theres a little delay on some of the images being displayed but nothing that would make me want to throw my mac out the window.
I made a quick video:
https://www.screencast.com/t/3FnnkmYV
Note: the video software is a memory hog, and it loads faster without the video recorder ( or the dev tools open ).
Main issue i see is the number of 508 errors ( resource limit reached ) being generated. Although they had little or no impact on being able to load or edit the page.
As you can see the GenerateBlocks only makes 3 requests - so it will add some burden to the resources but very little.