Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3167

Load extrnal js file via component.js and include tag

$
0
0

Hi,

 

i have problem with loaded external js file, my example:

 

sap.ui.core.UIComponent.extend("Component", {  metadata: {     name: "MyCOmponent",     version: "1.1",      library: "my.component",     includes: [               'css/myStyle.css',               'https://raw.githack.com/zloirock/core-js/v2.2.2/client/shim.min.js'        ],     }
}

and this example work correct in ff and chrome but in ie11 is error with load js file.

 

Error: File: UIComponent.js, Line: 6, Column: 283

 

if i load js file by script tag or jQuery.sap.includeScript() method everything is allright in all browsers.

 

Regards, Bart


Viewing all articles
Browse latest Browse all 3167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>