You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When updating a script node that was previously appended to the DOM with a url, no network request is made.
Append script node to document
Find script node with selector
$node.attr('src', someUrl);
Observe: No network request for someUrl is made in the browser's network tab
See example of jquery handling this: https://jsfiddle.net/w1gg6dgm/
This lack of functionality is manifested in a few different ways...
Appending a script node that already has a src attribute set never requests the file at src.
Example:
const $node = $('<script src=${url}></script>');
$('body').append($node); // should cause the script src to be loaded.... it doesn't
The text was updated successfully, but these errors were encountered:
JessicaSachs
changed the title
Script is not loaded after script node is updated with src attribute.
Script src is not loaded when appended with $
Jan 31, 2018
When updating a script node that was previously appended to the DOM with a url, no network request is made.
$node.attr('src', someUrl);
Observe: No network request for
someUrl
is made in the browser's network tabSee example of jquery handling this: https://jsfiddle.net/w1gg6dgm/
This lack of functionality is manifested in a few different ways...
Appending a script node that already has a src attribute set never requests the file at src.
Example:
The text was updated successfully, but these errors were encountered: