nytimes/library

Audit script load locations, inline code

Open

#53 opened on Aug 11, 2019

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (148 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (1,180 stars)
PR merge metrics
 (PR metrics pending)

Description

As Isaac said in #51, we could likely move many (if not all) of our script tags out of the document <head>.

It looks like all the other Library scripts are in the head (and we just haven't audited this in a while). [...] I think it would be worthwhile for us to be consistent about where scripts are included. [...] What do you think about moving the other includes so they can all be together? My hunch is that this wouldn't break anything but would be curious to see what you find.

Originally posted by @isaacwhite in https://github.com/nytimes/library/pull/51

Additionally, as seen in #283, our inline client-side code could probably use some cleanup as well.

Contributor guide