So we load two menus, one for mobiles and one for desktop/ tablet, currently we used "display:none;" to manage that however, given our desktop menu loads images and other contents, I want to optimise this and stop the desktop content loading completely on mobiles.
I know of ways to do this with Javascript however, this would not solve the problem, given that we load Javascript in the footer or async it, and we would like to keep it that way, so does anyone know of a cool way to do this in php?
Thanks,
NG