johnnliu / UserCustomActionsConfigPage

The easiest way to add script to your SharePoint and SharePoint Online
33 stars 22 forks source link

cross over discussions with jslink #4

Open johnnliu opened 8 years ago

johnnliu commented 8 years ago

@avishnyakov

http://sharepoint-community.net/profiles/blogs/5-facts-about-jslink-in-sharepoint-2013-you-might-not-know

test the SOD stuff.

Danny-Engelman commented 8 years ago

John, if you use the Issues as a personal notebook facility all us Watchers get all your musings as well..

johnnliu commented 8 years ago

OK! Will keep musings to a minimum. I don't mind if you want to switch to just "not watching"

JSLink syntax is wild, they look like this: “~sitecollection/Style Library/spdevlab/spdevlab.multiple-1.js|~sitecollection/Style Library/spdevlab/spdevlab.multiple-2.js(d)|~sitecollection/Style Library/spdevlab/spdevlab.multiple-3.js(d)”

The (|) denotes multiple script links. The (d) denotes load with SOD and it'll cache-bust as well. I wanted to track this and see if the same works in ScriptLinks. That's what this task is really.

Danny-Engelman commented 8 years ago

I don't mind, we all learn. There are not enough people doing good Front-End Dev. FYI SharePoint Online accepts absolute URLs in the JSLink connections; so you can link to CDN files. So I opened up my HTTPS server to allow CORS and my clients now always run the latest versions of the iCSR JS libraries. https://icsr.github.io/JSLinkManager.html might be of interest as well; It doesn't do ScriptLinks (yet)