On load and on resize?

On load and on resize?

How to make it work like it should be working on load and on resize???