Skip Navigation

[Resolved] Add option to load Bootstrap via CDN

This support ticket is created 6 years, 6 months ago. 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.

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)

This topic contains 2 replies, has 2 voices.

Last updated by Clifford 6 years, 6 months ago.

Assisted by: Beda.

Author
Posts
#905989

Reference: hidden link

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.