>>96701285At closest approach, Mars is 57.6 million km (35.7 million miles) away from Earth and it's 400 million km (248 million miles) when it's farthest away. Since the speed of light is around 300000 km/s, it takes light between 192 to 1333 seconds to get from Mars to Earth, depending on if the planets are on the same side in their orbits around the Sun or not.
So that means that any time you clicked anything on the Internet on Mars, it would take between 6 to 44 minutes to load the webpage because the signal has to make a two way trip.
Therefore, the only way the Internet would work on Mars, would be if wverything was cached on Mars. Any message you typed in chat would be 6 to 44 minutes late.