fynight
Forum Replies Created
-
This might fix it
Open your contact pageRight‑click → Inspect
Find the inline script containing
wpforms_settingsLook at the script tag — you will see something like:
<script type=”text/plain” data-wpo-inline-js=”wpforms-inline”> or <script type=”text/plain” data-wp-optimize-inline-js=”wpforms-inline”>Add THAT EXACT STRING to the Delay JS exclusions
Go to:
WP‑Optimize → Minify → JavaScript → Delay JavaScript → Exclude scripts from Delay
Add the exact value you found.
This was based on the plugin author’s help.@jbgupdraft I don’t test these fixes people are needing help with online, I run a testing environment and see if I can fix.
This is my code snippet using PHP and a plugin that allows me to run snippets. You can also add this to functions.php via your child theme. But I have uploaded it to WeTransfer https://we.tl/t-aJyyZBDJfjLYGAKN I would ask the plugin owner to check to see if it will work.
Which I can not add for some reason lolI have checked this as well, and maybe this will work
Paste ALL of these into:WP‑Optimize → Minify → JavaScript → Delay JavaScript → Exclusions
Code
wpforms_settings wpforms-inline wpforms wpforms-lite wpforms-frontend wpforms-recaptcha wpforms.init grecaptcha recaptcha google.com/recaptcha https://www.google.com/recaptcha/api.jsThis combination forces WP‑Optimize to:
- keep the inline settings block in place
- keep the WPForms frontend script in place
- keep reCAPTCHA v3 in place
- delay everything else normally
This preserves your page speed gains while fixing the form.
WP‑Optimize → Cache → Page Cache → “Never cache the following pages”
Add:
Code
/kontakt/
Not sure if it’s a full fix, but hopefully it will work for now till the plugin owners come back.- This reply was modified 1 month, 1 week ago by fynight.
@jbgupdraft very welcome glad I was able to help.
TBH, I am not one of the team that works here, just a general WordPress site owner that sometimes can help, but glad I was able to help you get this fixed 🙂
I would not bother to minify for logged in, as it’s the logged out users you want to have the best experience. For my site, logged-out users get everything and fast, logged-in users get a very slow experience.
- This reply was modified 1 month, 1 week ago by fynight.
This is what I see
The actual break
This part you pasted:
“, “:[“, “],
That is invalid JavaScript — it means:
The JSON got cut or merged incorrectly during minification
AND this line confirms it:
} )(“google-site-kit”, {…});
That’s a WordPress i18n translation block (
wp.i18n.setLocaleData)Why it ONLY breaks when logged in
When you’re logged in as admin, extra scripts load on the frontend, like:
- Google Site Kit admin data
- Admin bar scripts
- Extra localization data
- Debug / capability-based JS
These scripts do NOT load for guests, so:
- Guest cache = fine
- Admin cache = broken
ok, lets try Option 1 Exclude Google Site Kit from minification
Exclude JavaScript files
✔️ This exists (important)
There’s a field like:
Exclude JavaScript files from minification”
Add:
googlesitekit
google-site-kitYou can also add:
wp-includes/js/dist/i18n
Option 2 –Go to:
WP Admin → WP-Optimize → Minify 1. “Enable minify for logged-in users”
Turn this OFF
try see if this fixes it- This reply was modified 1 month, 2 weeks ago by fynight.
You might want to try a couple of things: first, clear the cache and re-minify the files. If the problem persists, you could temporarily disable minification for admin pages and see if that stabilizes
Forum: Plugins
In reply to: [LiteSpeed Cache] Meta data not being picked up with lightspeedFixed
Forum: Plugins
In reply to: [LiteSpeed Cache] Meta data not being picked up with lightspeedthanks, though I don’t think a general user using twitter will think of this, they will just expect our pages to work. Is there a way of getting lightspeed to give bots the latest meta no questions asked and it will just work? Like excluding them from cache versions of the site or something else. Using WP total cache this never happened. So this is sown what new to me. So getting this fixed as a priority.
I have read all that and that seems to be for updates posts not bots not seeing the meta and can not provide a social card.
Forum: Plugins
In reply to: [LiteSpeed Cache] Meta data not being picked up with lightspeedTBH I have no idea, first twitter don’t see the meta, then after a little time of me waiting to retry it does… No idea what it going on, just like yourself. Discord, Facebook and many others pick up the meta data right away, though twitter does not, for some time of me trying or waiting.
This happens with new and old content… Something is wrong somewhere.
i am going to speak to rank math as well.
Forum: Plugins
In reply to: [LiteSpeed Cache] Meta data not being picked up with lightspeedI think there is something wrong with twitter both work now….. this is odd as hell
Forum: Plugins
In reply to: [LiteSpeed Cache] Meta data not being picked up with lightspeedNot sure if this is the right thing to do? though now the seo info is right at the top, why any bot can not read it now is beyond me, but still having issue https://invisioncommunity.co.uk/the-c64-mini-review/ I give up slowly.
Another one https://invisioncommunity.co.uk/alienware-13-review/
all being tested with https://cards-dev.x.com/validator
discord works, facebook works but twitter does notForum: Plugins
In reply to: [LiteSpeed Cache] Meta data not being picked up with lightspeedwhat I have done is installed wp headers and footers and removed the huge script from the top that controls all ads and the cookie consent module further down… maybe this will help
Forum: Plugins
In reply to: [LiteSpeed Cache] Meta data not being picked up with lightspeedhttps://invisioncommunity.co.uk/genesis-thor-660-review/ this is another one
I think this is what you want to see here the html code https://we.tl/t-XcCZM1OQH7 it now works after a shed load of attempts
Forum: Plugins
In reply to: [LiteSpeed Cache] Meta data not being picked up with lightspeedForum: Plugins
In reply to: [LiteSpeed Cache] Meta data not being picked up with lightspeed