Closed backflip closed 6 years ago
Generally, I'd also focus on new implementations of MediaQuery and WindowEventResizer (https://www.npmjs.com/package/@unic/factory-breakpoint-manager) (windowEventResizer not yet implemented)
@christiansany, absolutely, but as stated above, I wanted to keep the changes as minimal as possible so we can discuss new architectural approaches separately of dropping jQuery.
@christiansany, I have added two basic polyfills: NodeList.forEach
and CustomEvent
. Additionally, a fetch
polyfill is loaded asynchronously if needed.
Notes:
dom-delegate
to replace the previous event system (after checking out about every DOM event abstraction I could find). The main difference is probably that there is no.add.some.namespaces
thingie no more. So instead of unbinding events via namespaces we rather keep track of all listeners belonging to a module. Theevents
andmediaqueries
helpers don‘t use the delegate library in a very smart way, but I guess this code will be replaced soon anyway.fetch
on demand)Mutation|IntersectionObserver
, lazy-load complete modules etc.). @christiansany has some great ideas.Thoughts?