Thanks @MaxZieb and @h_classen
I’m trying to figure out how to structure my code and classes to make most sense and make it fairly modular. Basically I’ll be loading multiple json files with different structures in different projects and would like the parsing and loading data to different DOM objects to be fairly ‘modular’ from project to project.
Rather than changing the ‘main’ code every time and keeping taps on versions and mutations, having separate ‘libraries’ for how to deal with different data. Even if the data source changes from a json to database calls.
So how and where should the callback be placed?
@MaxZieb when you say extend HypeDocument, do you mean similar to here: Extend Tumult Hype with JavaScript: hypeDocument.extensions
I’ve never really needed to work with XMLHttpRequest so I’ll look into it now.
Thanks again