Skip to content

Extensions: Application Customizer - Loading JS Files in <HEAD> Tags #626

@PopWarner

Description

@PopWarner

Category

  • Question
  • Typo
  • Bug
  • Additional article idea

The current architecture of the SPFx Extensions allow for us to populate "Placeholders", such as PageHead and PageFooter with content.

If we need to load JS files though, be them stored within SP or externally, we would need to add external references into the "HEAD" tag of the page.

We can use the current placeholders to dynamically update the tag, but this seems less then optimal.

Classic UCA's allowed for multiple JS references, as well as the sequence in which they were loaded. (Ex: Load jQuery prior to loading a Utility JS file that is dependent on jQuery.)

Replicating this functionality for SPFx Extensions would allow better inclusion of JS functions needed site wide.

If you are planning to share a new feature request (enhancement / suggestion), please use SP Dev UserVoice at http://aka.ms/sp-dev-uservoice.
Created Here:
https://sharepoint.uservoice.com/forums/329220-sharepoint-dev-platform/suggestions/19536304-extensions-application-customizer-loading-js-fi

Metadata

Metadata

Assignees

Labels

area:spfxCategory: SharePoint Framework (not extensions related)type:uservoice-requestEnhancements & feature requests should be posted: http://aka.ms/sp-dev-uservoice

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions