-
Notifications
You must be signed in to change notification settings - Fork 1k
Import JSOM #462
Copy link
Copy link
Closed
Labels
listmaintenance-oldissuesMarked for outdated issues as part of cleaning processMarked for outdated issues as part of cleaning processstatus:trackedCurrently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)Currently 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-uservoiceEnhancements & feature requests should be posted: http://aka.ms/sp-dev-uservoice
Description
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"
},
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
listmaintenance-oldissuesMarked for outdated issues as part of cleaning processMarked for outdated issues as part of cleaning processstatus:trackedCurrently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)Currently 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-uservoiceEnhancements & feature requests should be posted: http://aka.ms/sp-dev-uservoice