vanilla javascript both load and rezie code example Example: check window resize javascript window.addEventListener("resize", () => { // CODE });