• Resolved christianoliveira87

    (@christianoliveira87)


    I’m experiencing for the first time using Jetpack Tiled Gallery and the new Gutenberg Editor, and it has been an stressing and frustating experience. I’ve a new very long post with lots of images and galleries, and the editor is extremely slow, with a 2-5s lag between input the text with the keyword and displaying it. I have no problems with other posts, tried deactivating some plugins, and the only thing that differs in this one is that I use lots of Jetpack Galleries

    You can see the post here: https://randomtrip.es/guia-algarve/

    And I also wrote an issue here: https://github.com/WordPress/gutenberg/issues/10994

    Another weird thing is that some images are being included from the Jetpack CDN, something I don’t want and that is not activated in my Jetpack configuration.

    Any insights of what may be happening? Any other reports of problems with galleries and Gutenberg?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter christianoliveira87

    (@christianoliveira87)

    Hi! Any insights about this? I can’t even open the post now to edit, the browser just freezes 🙁

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hi @christianoliveira87,

    Thanks for contacting us about this, and for commenting on the GH issue; someone will eventually get back to you over there 🙂

    I appreciate your troubleshooting when trying to understand why the editor lags only when editing that specific post. I suspect that would be caused by the size of your images: if they’re too big, perhaps the system takes a little while to load them.

    I wouldn’t exclude also a potential block or security/firewall conflict happening at your server’s levels – if you could double-check that at your end to stay on the safe side, that’d be great. I’d check on that since you reported the browser freezing completely too.

    As for the CDN note you mentioned:

    Another weird thing is that some images are being included from the Jetpack CDN, something I don’t want and that is not activated in my Jetpack configuration.

    The Tiled Gallery block uses our CDN feature. When enabling the Tiled Gallery block, the CDN needs to be enabled as well. This means that upon using that block, the images will be automatically served by our CDN.

    If you don’t want this to happen, the solution is to switch back to the Classic Editor.

    Hope that’s all clear! Let me know what you find out about the editor and the browser freezing, and we’ll take it from there.

    Thread Starter christianoliveira87

    (@christianoliveira87)

    Hi @erania-pinnera and thanks for your answer!

    1. The images are not too big to cause trouble (1200px wide, between 100kb and 800kb). I have plenty of other post with tons of images, same size and no problem!
    2. I also contacted the server company, they say there is no issue on their side.

    The problem appears only when editing the post, and it’s clear that it demands a lot of computer power as the memory consumed by the browser increases significantly as well as the CPU usage (the fans go full speed on my Macbook as soon as I open that post)

    Regarding the CDN:

    The Tiled Gallery block uses our CDN feature. When enabling the Tiled Gallery block, the CDN needs to be enabled as well.

    I see that images are served by your CDN, but it’s not activated in my settings. Is that a reason of conflict?

    https://www.evernote.com/l/Agq-S2-ZAQ9JP5DSe-yH5iuZa7oGeiCDs5E

    As explained in the Github issue, when seeing what’s happening in the browser I see that there are lots of petitions to the WordPress API, like this:

    https://randomtrip.es/wp-json/wp/v2/media/[MEDIA-ID]?context=edit&_locale=user

    Taking a deeper look, I see that they take a lot of time to load (around 1 second each):
    https://www.evernote.com/l/AgrOjt7aW8lEP4qpXAMF0g7eBbbc_b6hea0

    Are those requests fired by Jetpack? If that’s so, what’s the purpose in terms of the editor itself? Is there any way to avoid all those request, or just fire them when editing the images related to the specific gallery? Or is there any way to cache those requests so they don’t take that long?

    I’m open to work with anybody on the team that can take a deeper look in order to improve it as I really want to use Jetpack Galleries and this seems just a bug.

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hi @christianoliveira87,

    The problem appears only when editing the post, and it’s clear that it demands a lot of computer power as the memory consumed by the browser increases significantly as well as the CPU usage (the fans go full speed on my Macbook as soon as I open that post)

    The strange thing here is that this happens only with this specific post, am I right? Does it even happen with any other posts at all? Have you got any logs related to the CPU performance upon editing this particular post?

    I see that images are served by your CDN, but it’s not activated in my settings. Is that a reason of conflict?

    The module requires the CDN to be active, so even if it does seem to be disabled, when using the block the CDN starts to work anyway.

    Taking a deeper look, I see that they take a lot of time to load (around 1 second each):
    https://www.evernote.com/l/AgrOjt7aW8lEP4qpXAMF0g7eBbbc_b6hea0

    Are those requests fired by Jetpack? If that’s so, what’s the purpose in terms of the editor itself? Is there any way to avoid all those request, or just fire them when editing the images related to the specific gallery? Or is there any way to cache those requests so they don’t take that long? I’m open to work with anybody on the team that can take a deeper look in order to improve it as I really want to use Jetpack Galleries and this seems just a bug.

    I’d recommend reporting this to the GitHub issue as the developers will be more technical and useful than me to address this. I appreciate your willingness to collaborate, this is really great! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Tiled Galleries + Gutenberg, slow editor’ is closed to new replies.