elementor / elementor/elementor

⛔ Issue with multiple instances of JavaScript variables when Elementor is active

Open
#27,266 0 comments 0 reactions 0 assignees View on GitHub
component/code document/assets mod/b* mod/c* mod/e*
Dominant language
PHP
Stars
7.1k
Forks
1.6k
Avg merge
1d 5h
Merged PRs (30d)
193

Description

### Prerequisites

- [X] I have searched for similar issues in open and closed tickets and cannot find a duplicate.
- [ ] I have troubleshooted my issue, and it still exists against the latest stable version of Elementor.

### Description

I am experiencing an issue across multiple WordPress sites where certain JavaScript variables, specifically elementorWebCliConfig and elementorDevToolsConfig, are being duplicated multiple times in the page source when the Elementor plugin is activated. In some cases, these variables appear up to seven times on a single page.

![Bildschirmfoto 2024-05-08 um 22 35 51](https://github.com/elementor/elementor/assets/33485273/dfff4810-0913-4fe2-b3c6-719f81c81d34)

### Steps to reproduce

it needs only Elementor plugin to be activated and the user should be logged in.

### Expected behavior

The variables should be displayed only once.

### Isolating the problem

- [ ] This bug happens when only the Elementor (and Elementor Pro) plugins are active.
- [ ] This bug happens with the Hello Elementor theme active.
- [X] I can reproduce this bug consistently by following the steps I described above.

### Elementor System Info

Click to reveal

````txt

== Server Environment ==
Operating System: Linux
Software: nginx/1.24.0
MySQL version: Ubuntu 20.04 v10.3.38
PHP Version: 8.2.18
PHP Memory Limit: 512M
PHP Max Input Vars: 1000
PHP Max Post Size: 32M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected

== WordPress Environment ==
Version: 6.5.3
WP Multisite: No
Max Upload Size: 32 MB
Memory limit: 40M
Max Memory limit: 512M
Language: de_DE
Timezone: 0
Debug Mode: Inactive

== Theme ==
Name: Twenty Twenty-Four
Version: 1.1
Author: the WordPress team
Child Theme: No

== User ==
Role: administrator
WP Profile lang: de-DE
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36

== Active Plugins ==
Elementor
Version: 3.21.5
Author: Elementor.com

== Elementor-Experimente ==
Verbessertes Laden von Assets: Standardmäßig aktiviert
Verbessertes Laden von CSS: Standardmäßig aktiviert
Inline-Schriftarten-Symbole: Standardmäßig aktiviert
Additional Custom Breakpoints: Standardmäßig aktiviert
admin_menu_rearrangement: Standardmäßig deaktiviert
Flexbox Container: Standardmäßig aktiviert
Upgrade Swiper Library: Standardmäßig aktiviert
Grid Container: Standardmäßig aktiviert
Nested Elements Performance: Standardmäßig deaktiviert
Optimized Control Loading: Standardmäßig deaktiviert
Elementor Home Screen: Standardmäßig aktiviert
Editor Top Bar: Standardmäßig deaktiviert
Build with AI: Standardmäßig aktiviert
Startseiten: Standardmäßig aktiviert
Nested Elements: Standardmäßig deaktiviert
Hintergrundbilder nachladen: Standardmäßig aktiviert

== Protokoll ==

== Elementor - Compatibility Tag ==

````

### Agreement

- [X] I agree that my issue may be closed without action if it doesn't meet all the requirements.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.