Skip Navigation

[Resuelto] Add option to load Bootstrap via CDN

This support ticket is created hace 6 años, 6 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Clifford hace 6 años, 6 meses.

Asistido por: Beda.

Autor
Mensajes
#905989

Reference: enlace oculto

It would be nice if there was an option or filter to load Bootstrap assets via CDN instead of from the plugin's Vendor subdirectory.

I would expect this option to be inactive if SCRIPT_DEBUG (https://codex.wordpress.org/Debugging_in_WordPress#SCRIPT_DEBUG) is true.

#906068

You could create a Custom Theme, and enqueue the assets from any point you like.

If Toolset would add such a feature, which I cannot decide but forwarded to the related Developers, we would not rely on a Script Debug Constant I think, but that remains to be discussed by the Developers.

For now, the only solution is to change the Toolset > Settings to deliver Bootstrap with the Theme and load it into your Theme's code whether from a CDN or internal folder.

#906277

I am aware I could. I was thinking it would make most sense for Toolset to do so itself so that's why I was passing along the feature request.

Thank you.