i know that you with $(window).width() can get the size of the web browser.
i want to detect when the user change the size of his web browser so i could readjust the col
You might want to use debounce : https://davidwalsh.name/javascript-debounce-function
debounce
Otherwise the
window.addEventListener("resize")
Will fire the whole time as the window resize is in progress. Which will tax your CPU overhead.