We would like to use/build community using communities lightning. The problem we encounter is that there is no possibility to add any javascript from external resource/CDN.
The issue is that this is the only way you use 99% of marketing tools. The problem we encounter is related to Blueconic – automated profiling tool.
I know there is an option to store JS in static resources and load this way – but still this cannot be done in the head section. Am I correct? For me actually means show stopper and one client for SF less.
I have seen Load CSS and JS from CDN in Lightning component. Mentioned topic is not solved and what is important in my situation external resources must be loaded in the HEAD section of the page – NOT in component – so it's different place in the platform.
Best Answer
As of Summer '17 with locker service and with "Enable Stricter CSP for Lightning Components" Enabled it will no longer be supported. the documentation lists supported tags and attributes as well as an IMPORTANT note.
If you do add scripts you will get the following message:
You will have to monitor and check for critical updates and decide which ones to enable/disable.