View Issue Details

IDProjectCategoryView StatusLast Update
0036874mantisbtotherpublic2026-03-12 12:27
Reporterraspopov Assigned Tocommunity  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.28.0 
Target Version2.29.0Fixed in Version2.29.0 
Summary0036874: Support CDN in require_js and require_css functions
Description

MantisBT has require_js() and require_css() functions designed to generate lists of external scripts and styles for subsequent inclusion in the HTML document header when it is output. However, these functions only support local links. Support for CDN links will allow to conveniently include headers directly on the pages where specific scripts and styles are needed. If this proposal is implemented, it will be possible to optimize pages with dropzone.js and bootstrap-datetimepicker.js scripts, as well as Viz.js.

Additional Information

Continuation of issue 0036864.

TagsNo tags attached.

Relationships

related to 0036864 resolvedcommunity Proposal for implementing deferred HTTP headers 
related to 0036967 resolvedcommunity Restricting Dropzone loading by pages that use it. 

Activities

Related Changesets

MantisBT: master 7b74303a

2026-03-07 03:21

raspopov

Committer: community


Details Diff
Support CDN links in require_js(), require_css()

jQuery must be the first script in the list.

Fixes 0036874, PR https://github.com/mantisbt/mantisbt/pull/2185
Affected Issues
0036874
mod - core/html_api.php Diff File