Try loading socketio on DOM load.