Skip to content

Import JSOM #462

@z1988hf

Description

@z1988hf

The guide about using JSOM on this page https://dev.office.com/sharepoint/docs/spfx/web-parts/guidance/connect-to-sharepoint-using-jsom has one flaw.
That is, it hard code the url of these js file. In real world, the app should get these js file from the website it runs, not from a fixed website. So this approach doesn't fit. SPFX should provide a loader to load external js file on demand.
"sp-init": {
"path": "https://contoso.sharepoint.com/_layouts/15/init.js",
"globalName": "$_global_init"
},

Metadata

Metadata

Assignees

Labels

listmaintenance-oldissuesMarked for outdated issues as part of cleaning processstatus:trackedCurrently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)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