HUE-8458 [frontend] Load new scripts using $.get and eval instead of appending <script> tags
HUE-8458 [frontend] Load new scripts using $.get and eval instead of appending <script> tags

It turns out that <script> tags are completely synchronous when appending them after the page has loaded.

By using $.get instead we can fetch all the js contents async and evaluate in order once all of them are loaded.

This saves a few seconds on high latency connections.

cloudera/hue,kawamon/hue,kawamon/hue,kawamon/hue,kawamon/hue,kawamon/hue,cloudera/hue,cloudera/hue,kawamon/hue,kawamon/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,kawamon/hue,kawamon/hue,cloudera/hue,cloudera/hue,cloudera/hue,kawamon/hue,kawamon/hue,kawamon/hue,cloudera/hue,kawamon/hue,kawamon/hue,cloudera/hue,cloudera/hue,kawamon/hue,cloudera/hue,cloudera/hue,kawamon/hue,kawamon/hue,cloudera/hue,cloudera/hue,cloudera/hue,kawamon/hue