View Issue Details

IDProjectCategoryView StatusLast Update
0003527Composr alpha bug reports[All Projects] General / Uncategorisedpublic2018-03-12 09:58
ReporterChris GrahamAssigned ToSalman 
SeverityFeature-request 
Status resolvedResolutionfixed 
Summary0003527: Why not just put polyfills into global.js?
DescriptionWhy not just include these using Tempcode INCLUDE directives, at the top of global.js?

This has 2 big advantages:
1) Fewer HTTP requests
2) No need for a separate directory of JS file, just uses standard JS loader system

I can't see a disadvantage.

We can prefix each file "polyfill_" to keep things tidy in themes/default/javascript/.
TagsNo tags attached.
Sponsorship open

Activities

Salman

2018-03-09 18:09

reporter   ~0005568

Last edited: 2018-03-09 18:11

View 2 revisions

I have moved all polyfills except the ones only loaded by IE to global.js. dom_init.js is also still loaded early separately because we need it to track loading status of stylesheets and scripts. Is that good enough?

Guest

2018-03-09 18:55

viewer   ~0005569

Sounds good.

Issue History

Date Modified Username Field Change
2018-02-02 03:00 Chris Graham New Issue
2018-02-02 03:00 Chris Graham Status non-assigned => assigned
2018-02-02 03:00 Chris Graham Assigned To => Salman
2018-03-09 18:09 Salman Note Added: 0005568
2018-03-09 18:11 Salman Note Edited: 0005568 View Revisions
2018-03-09 18:55 Guest Note Added: 0005569
2018-03-12 09:58 Salman Status assigned => resolved
2018-03-12 09:58 Salman Resolution open => fixed
2023-02-26 18:29 Chris Graham Category General => General / Uncategorised