$.getScript error in iOS Safari - works in Chrome

129 views Asked by At

I am loading a static resource file through $.getScript as below. loadTestComponents is a function defined within the example.js file. This works as expected in Chrome but it's not working in iOS Safari.

I'm getting an error:

loadTestComponents is undefined

$.getScript(getParameterByName('srURL') + '/example.js', function(data, textStatus, jqxhr) {
  console.log(textStatus); // Success
  console.log(jqxhr.status); // 200
  console.log("Load was performed.");
  console.log(data);
  loadTestComponents();
});
0

There are 0 answers