deferred js, fixed FOUC by appending js class to html and updating css