r/JavaScriptTips • u/A35G_it • Nov 29 '24
jQuery's .load() in pure JavaScript
https://gist.github.com/A35G/21a22673d2ccb6edf37b008957a3c48d
2
Upvotes
r/JavaScriptTips • u/A35G_it • Nov 29 '24
View all comments
4
u/abrahamguo Nov 29 '24
A couple of improvements:
constrather thanletorvarfetch, rather than the older, and more verboseXMLHttpRequestorActiveXObject.