Pregunta sobre Async JavaScript de Wordpress:

Async rompe el generador de JavaScript Beaver

Un usuario pregunt贸 馃憞

Hola,

Si habilito Async JavaScript, el editor de p谩ginas de Beaver Builder no se carga correctamente. Si desactivo Async JavaScript, el editor de p谩ginas de Beaver Builder est谩 bien.

He configurado JQuery para que excluya Beaver Builder y lo agregue a la lista Async JavaScript Theme Exclusion. Al verificar la fuente, veo que no todos los scripts BB usan async / deferral.

WordPress 4.9.8 Async JavaScript 2.18.06.13 Beaver Builder Pro 2.1.4.1

驴Alguna idea sobre c贸mo hacer que los dos plugins funcionen juntos?

Gracias por tu ayuda.

(@optimizingmatters)

Hace 2 a帽os, 7 meses

驴Qu茅 errores de JS ve en la consola del navegador Stuart?

Lanzador de hilos

(@stuartmorrisau)

Hace 2 a帽os, 7 meses

Hola,

Encuentro lo siguiente en la consola de recarga:

09:40:17.001 Navigated to https://www.silvobeat.com/?fl_builder
09:40:17.405 VM44281:68 true
09:40:18.273 jquery.ui.sortable.js:34 Uncaught TypeError: Cannot read property 'mouse' of undefined
    at jquery.ui.sortable.js:34
    at jquery.ui.sortable.js:1298
(anonymous) @ jquery.ui.sortable.js:34
(anonymous) @ jquery.ui.sortable.js:1298
09:40:18.459 jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 1.4.1
09:40:18.486 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://fonts.gstatic.com/s/karla/v6/qkBbXvYC6trAT7RVLtw.woff2
09:40:18.488 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://fonts.gstatic.com/s/lora/v12/0QIvMX1D_JOuMwr7Iw.woff2
09:40:18.698 ?fl_builder:7411 Uncaught TypeError: Cannot read property 'editor' of undefined
    at ?fl_builder:7411
(anonymous) @ ?fl_builder:7411
09:40:19.046 jquery.mjs.nestedSortable.min.js:3 Uncaught TypeError: Cannot read property 'sortable' of undefined
    at jquery.mjs.nestedSortable.min.js:3
    at jquery.mjs.nestedSortable.min.js:3
    at jquery.mjs.nestedSortable.min.js:3
(anonymous) @ jquery.mjs.nestedSortable.min.js:3
(anonymous) @ jquery.mjs.nestedSortable.min.js:3
(anonymous) @ jquery.mjs.nestedSortable.min.js:3
09:40:19.154 plupload.min.js:1 Uncaught ReferenceError: mOxie is not defined
    at plupload.min.js:1
(anonymous) @ plupload.min.js:1
09:40:19.480 mediaelement-migrate.min.js:1 Uncaught ReferenceError: mejs is not defined
    at mediaelement-migrate.min.js:1
    at mediaelement-migrate.min.js:1
(anonymous) @ mediaelement-migrate.min.js:1
(anonymous) @ mediaelement-migrate.min.js:1
09:40:19.886 custom.min.js:1 Uncaught TypeError: e(...).headroom is not a function
    at custom.min.js:1
    at custom.min.js:1
(anonymous) @ custom.min.js:1
(anonymous) @ custom.min.js:1
09:40:19.917 jquery.masonry.min.js:11 Uncaught TypeError: Cannot read property 'prototype' of undefined
    at jquery.masonry.min.js:11
    at jquery.masonry.min.js:11
(anonymous) @ jquery.masonry.min.js:11
(anonymous) @ jquery.masonry.min.js:11
09:40:19.985 backbone.min.js:1 Uncaught TypeError: Cannot read property 'extend' of undefined
    at backbone.min.js:1
    at backbone.min.js:1
    at backbone.min.js:1
(anonymous) @ backbone.min.js:1
(anonymous) @ backbone.min.js:1
(anonymous) @ backbone.min.js:1
09:40:20.079 shortcode.min.js:1 Uncaught ReferenceError: _ is not defined
    at shortcode.min.js:1
    at shortcode.min.js:1
(anonymous) @ shortcode.min.js:1
(anonymous) @ shortcode.min.js:1
09:40:20.083 media-models.min.js:1 Uncaught ReferenceError: _ is not defined
    at Object.20 (media-models.min.js:1)
    at b (media-models.min.js:1)
    at 20 (media-models.min.js:1)
    at media-models.min.js:1
20 @ media-models.min.js:1
b @ media-models.min.js:1
20 @ media-models.min.js:1
(anonymous) @ media-models.min.js:1
09:40:20.177 media-editor.min.js:1 Uncaught ReferenceError: _ is not defined
    at media-editor.min.js:1
(anonymous) @ media-editor.min.js:1
09:40:20.181 media-audiovideo.min.js:1 Uncaught TypeError: Cannot read property 'settings' of undefined
    at Object.<anonymous> (media-audiovideo.min.js:1)
    at b (media-audiovideo.min.js:1)
    at media-audiovideo.min.js:1
    at media-audiovideo.min.js:1
(anonymous) @ media-audiovideo.min.js:1
b @ media-audiovideo.min.js:1
(anonymous) @ media-audiovideo.min.js:1
(anonymous) @ media-audiovideo.min.js:1
09:40:20.289 media-views.min.js:1 Uncaught TypeError: Cannot set property 'l10n' of undefined
    at Object.<anonymous> (media-views.min.js:1)
    at b (media-views.min.js:1)
    at media-views.min.js:1
    at media-views.min.js:1
(anonymous) @ media-views.min.js:1
b @ media-views.min.js:1
(anonymous) @ media-views.min.js:1
(anonymous) @ media-views.min.js:1
09:40:20.359 wp-util.min.js:1 Uncaught ReferenceError: _ is not defined
    at wp-util.min.js:1
    at wp-util.min.js:1
(anonymous) @ wp-util.min.js:1
(anonymous) @ wp-util.min.js:1
09:40:21.063 wp-plupload.min.js:1 Uncaught TypeError: Cannot read property 'Attachments' of undefined
    at wp-plupload.min.js:1
    at wp-plupload.min.js:1
(anonymous) @ wp-plupload.min.js:1
(anonymous) @ wp-plupload.min.js:1
09:40:21.074 wp-backbone.min.js:1 Uncaught ReferenceError: Backbone is not defined
    at wp-backbone.min.js:1
    at wp-backbone.min.js:1
(anonymous) @ wp-backbone.min.js:1
(anonymous) @ wp-backbone.min.js:1
09:40:21.769 widget.min.js:11 Uncaught TypeError: c is not a constructor
    at Function.a.widget (widget.min.js:11)
    at wpdialog.min.js:1
    at wpdialog.min.js:1
a.widget @ widget.min.js:11
(anonymous) @ wpdialog.min.js:1
(anonymous) @ wpdialog.min.js:1
09:40:21.965 fl-builder.min.js:5 ************************************************************************
09:40:21.966 fl-builder.min.js:5 Beaver Builder caught the following JavaScript error. If Beaver Builder is not functioning as expected the cause is most likely this error. Please help us by disabling all plugins and testing Beaver Builder while reactivating each to determine if the issue is related to a third party plugin.
09:40:21.966 fl-builder.min.js:5 "Uncaught TypeError: Cannot read property 'settings' of undefined" on line 2 of https://www.silvobeat.com/wp-content/plugins/bb-plugin/js/fl-builder.min.js.
09:40:21.967 fl-builder.min.js:5 TypeError: Cannot read property 'settings' of undefined
    at Object._initMediaUploader (fl-builder.min.js:2)
    at Object._init (fl-builder.min.js:2)
    at HTMLDocument.<anonymous> (fl-builder.min.js:5)
    at i (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at Function.ready (jquery.js:2)
    at HTMLDocument.K (jquery.js:2)
09:40:21.967 fl-builder.min.js:5 ************************************************************************
09:40:22.332 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0
09:40:25.010 VM44204:20 cannot call methods on masonry prior to initialization; attempted to call 'reloadItems'
window.console.error @ VM44204:20
f @ masonry.min.js:9
a.fn.(anonymous function) @ masonry.min.js:9
(anonymous) @ 2991-layout-draft.js:168
dispatch @ jquery.js:3
r.handle @ jquery.js:3
load (async)
add @ jquery.js:3
a.event.add @ jquery-migrate.min.js:2
(anonymous) @ jquery.js:3
each @ jquery.js:2
each @ jquery.js:2
sa @ jquery.js:3
on @ jquery.js:3
(anonymous) @ 2991-layout-draft.js:168
(anonymous) @ 2991-layout-draft.js:168

Esta respuesta fue modificada hace 2 a帽os, 7 meses.

(@optimizingmatters)

Hace 2 a帽os, 7 meses

Tambi茅n parece que est谩 utilizando Stuart Autoptimize, 驴podr铆a la combinaci贸n de AO y AsyncJS causar los problemas de BB aqu铆 o esto tambi茅n sucede cuando AO est谩 deshabilitado para los usuarios registrados (opci贸n en la parte inferior de la p谩gina de configuraci贸n de AO)?

Lanzador de hilos

(@stuartmorrisau)

Hace 2 a帽os, 7 meses

Ocurre con Autoptimize> 芦驴Optimizar tambi茅n para usuarios registrados?禄 opci贸n deshabilitada.

(@optimizingmatters)

Hace 2 a帽os, 7 meses

hmmm … extra帽o. Intentar茅 reproducirme localmente y ver si es posible / c贸mo solucionarlo. tal vez agregue la opci贸n 芦no realizar la sincronizaci贸n para los usuarios que han iniciado sesi贸n禄.

(@optimizingmatters)

Hace 2 a帽os, 7 meses

De acuerdo, reproducido y manos a la obra agregando wp-includes/js al campo 芦Exclusi贸n de secuencia de comandos禄, 驴puede intentarlo?

Lanzador de hilos

(@stuartmorrisau)

Hace 2 a帽os, 7 meses

隆脡xito! Muchas gracias por tu ayuda. 馃檪

(@optimizingmatters)

Hace 2 a帽os, 7 meses

bienvenido, no dude en revisar el plugin y dejar el soporte aqu铆. 馃檪

驴Solucion贸 tu problema??

0 / 0

Deja una respuesta 0

Tu direcci贸n de correo electr贸nico no ser谩 publicada.