Page doesnt refresh automatically after pressing like

The page does not automatically refresh after the social media button is clicked. Is there a way to fix this issue?