Site logo

Archived topic

Freeze Customize

8 replies · Started by Lennart on October 1, 2020

Viewing posts 1–9 of 9

Hi

After updating to the last version everything is super slow.
Customize is impossible. It freezes

I have 512M ram allocated to the website.

Never had this issue before with just 128M

Hope you can help me asap :-)

Hi there,

do you have any plugin or server side caches ? If so can you try clearing them.

If still an issue can you supply a link to the site?

Yes I use Wp-Rocket.me
Never been an issue before - I tried clearing cache.
I tried to disable the cache.

Nothing helps.

The site is https://erotik.dk

I found the solution/error

I'm using Google Tag Manager and all scripts are being fired within the Customization, which means that every klik/change etc. fires a new series of tags

After disabling that, it works again

So now I need to find a solution for that so it wont fire while customizing.

How are you adding the GTM scripts ?

Well pretty standard I would think.
The only one I can think of is a script that run an Ajax call on every hit. Maybe that can cause it.

I just dont know how to disable it while in admin view

What i mean was - which method are you using to add the GTM codes?
Are you using a Plugin, a function or GP Hooks ?

I use insert headers footers plugin

Hmmm.. not sure about that plugin.
You can use the Hook Element:

https://docs.generatepress.com/article/hooks-element-overview/

There are 3 Hooks that are used for adding scripts:

1. WP_Head - adds code into the <head></head>
2. WP_body_open - adds code immediately after the opening <body> tag.
3. WP_Footer - adds code in the site footer.

With hooks we can add Conditional code if needed - give that a try and if the code is still firing in the backend let us know and we'll provide that code.

This archived topic is closed to new replies.