#3527 - Why not just put polyfills into global.js?

Identifier #3527
Issue type Feature request or suggestion
Title Why not just put polyfills into global.js?
Status Completed
Handling member Salman
Addon General / Uncategorised
Description Why 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/.
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated