creativedotdesign / tofino

WordPress boilerplate theme on a modern stack. NPM and Composer.
Other
29 stars 6 forks source link

Refactor JS / Remove Router #314

Closed danimalweb closed 3 years ago

danimalweb commented 3 years ago

Can't remember that last time we needed common.js and something like single-post.js as we just use querySelector for all the things.

Reduce the JS code to only use what we need and not the 3 files we have right now.

Want to keep the init(), finalize() and loaded() hooks.

danimalweb commented 3 years ago

Maybe a custom Promise around the init() function, so finalize() is only run after init().