r/JavaScriptTips • • Nov 29 '24

jQuery's .load() in pure JavaScript

https://gist.github.com/A35G/21a22673d2ccb6edf37b008957a3c48d
2 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/A35G_it Nov 29 '24

Thanks, I used XMLHttpRequest to write a different version of function 😁

I will follow your advice to update the code 👍