-
AuthorPosts
-
June 27, 2023 at 12:42 pm #1411831
After we updated Enfold to the latest version, a black bar appears at the top of the frontend with:
(function () { // Web Font Loader compatibility (https://github.com/typekit/webfontloader) var modules = { typekit: “https://use.typekit.net”, google: “https://fonts.googleapis.com/” }; var load = function (config) { setTimeout(function () { var a = window.consentApi; // Only when blocker is active if (a) { // Iterate all modules and handle in a singleWebFont.load
Object.keys(modules).forEach(function (module) { var newConfigWithoutOtherModules = JSON.parse( JSON.stringify(config) ); Object.keys(modules).forEach(function (toRemove) { if (toRemove !== module) { delete newConfigWithoutOtherModules[toRemove]; } }); if (newConfigWithoutOtherModules[module]) { a.unblock(modules[module]).then(function () { var originalLoad = window.WebFont.load; if (originalLoad !== load) { originalLoad(newConfigWithoutOtherModules); } }); } }); } }, 0); }; if (!window.WebFont) { window.WebFont = { load: load }; } })();How can we fix it?
June 27, 2023 at 12:54 pm #1411837Hey Mikel,
Could you post a link to where we can see the actual problem please? Also, did you try deactivating all plugins to see if that changes anything?
Best regards,
RikardJune 27, 2023 at 1:00 pm #1411839Hi Rikard,
First of all thanks for the quick reply :)
The affected website is: http://www.luera1959.deI haven’t disabled the plugins yet. They were all there before and I haven’t been able to find any connection between the plugins and this message so far. But I would like to try it right away.
Maybe another hint:
When I am logged into the backend, does this message not appear in the frontend?Greetings
MikelJune 27, 2023 at 1:54 pm #1411842Hi, there was or is a problem with the Autoptimize plugin.
If I disable that, everything goes back to normal.Thank you for the helpful tip.
June 27, 2023 at 7:55 pm #1411879 -
AuthorPosts
- You must be logged in to reply to this topic.