Elementor Pro loads its v3 frontend JS bundle and jQuery on every page, including pages that contain only V4 atomic elements
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 58/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, jquery, php, wordpress
- Ambito
- frontend, performance
Direzione di ricerca
Start by reading Plugin::enqueue_frontend_scripts() in elementor-pro/plugin.php, then trace the script registrations and dependencies in plugin.php and elementor/includes/frontend.php. Check how Pro’s V3 handlers and V4 form scripts are registered and whether the form needs jQuery. Done means a page containing only V4 elements avoids jQuery and the V3 handler bundle, while pages with relevant V3 widgets still load their required scripts.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
With Elementor Pro 4.4.1 active, a page built only from V4 elements (e-flexbox, atomic form) loads elementor-pro/assets/js/elements-handlers.min.js and jQuery. The page has no classic (V3) widgets.
Elementor core loads nothing for this page on its own: no handler script and no jQuery registers for it. Pro adds the chain below.
Plugin::enqueue_frontend_scripts()inelementor-pro/plugin.phpruns onelementor/frontend/before_enqueue_scripts, which fires on every Elementor frontend page.- It enqueues
elementor-pro-frontend(frontend.min.js) andpro-elements-handlers(elements-handlers.min.js) unconditionally. pro-elements-handlersdepends onelementor-frontend(plugin.php,register_frontend_scripts()).elementor-frontenddepends onjquery-ui-position(elementor/includes/frontend.php,register_scripts()). That pulls injquery-ui-core,jqueryandjquery-migrate.elements-handlers.min.jsis one 292 KB file (74 KB transferred) holding every Pro V3 handler. It contains 87jQueryreferences.
Result: the atomic promise (CSS and JS loaded per element, only when used) does not hold once Pro is active.
Page measured on 17 Nov 2026 (request by curl, script tags read from the HTML):
- Elements on the page:
e-flexbox,e-form,e-form-error-message,e-form-success-message. Zerodata-widget_typeattributes. - Scripts loaded on the page, in order:
webpack.runtime,jquery-core,jquery-migrate,frontend-modules,wp-hooks,wp-i18n,elementor-pro-frontend,jquery-ui-core,elementor-frontend,pro-elements-handlers. - Transferred sizes, from the browser's Network panel:
elements-handlers.min.js74.1 kB,jquery.min.js30.7 kB, Profrontend.min.js25.0 kB, corefrontend.min.js19.1 kB,frontend-modules.min.js16.7 kB,jquery-migrate.min.js5.2 kB.
Steps to reproduce
- Activate Elementor, Elementor Pro 4.4.1, and Hello Elementor. Turn Editor V4 on.
- Create a page with one Flexbox (V4) and one atomic Form. Add no classic widget.
- Publish and open the page.
- Open the browser's Network panel, filter by JS.
- See
jquery.min.js,jquery-migrate.min.js,elementor-pro/.../frontend.min.jsandelementor-pro/.../elements-handlers.min.jsload. - Deactivate Elementor Pro and reload. Compare the script list.
Expected behavior
- A page with only V4 elements loads no jQuery and no V3 handler bundle.
- Pro registers the V3 handlers as conditional assets, loaded only when a V3 widget that needs them is on the page. Pro's V4 form script is loaded only when the form is present.
Verified and not verified
- Verified: the script list and the element types on the page, read from the page's HTML.
- Verified: the dependency chain, read in the source of Pro 4.4.1 and core 4.3.0-latest.
- Not verified: the script list with Pro deactivated. That site is in use, so I did not deactivate Pro there. The statement that core loads no jQuery on its own comes from the source: nothing in core enqueues
elementor-frontenddirectly. - Not verified: whether the V4 form's own JS needs jQuery.
elements-handlers.min.jsis minified, so this needs a check in the source repository.
Elementor System Info
Elementor 4.3.0-latest-1789042183
Elementor Pro 4.4.1
Hello Elementor 3.5.2
WordPress 7.1.4
Features: e_atomic_elements: active, e_opt_in_v4: active, e_pro_atomic_form: active
- Lingua principale
- PHP
- Stelle
- 7.1k
- Fork
- 1.6k
- Merge medio
- 20h 20m
- PR unite (30g)
- 329
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di elementor/elementor
-
product/editor-v4 status/awaiting_triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
product/editor-v4 status/awaiting_triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno
-
product/editor-v4 status/awaiting_triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
status/awaiting_triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
status/awaiting_triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di elementor/elementor
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
Icinga/icinga-notifications-web#653 ·
I maintainer di solito rispondono entro 1 giorno
-
MCP Bundle
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
vimeo/psalm#14139 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
sync-en
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno