ga-wdi-boston / jquery-dom

Other
0 stars 139 forks source link

Change script injection snippet version and format #28

Open jrhorn424 opened 7 years ago

jrhorn424 commented 7 years ago
var script = document.createElement('script');script.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";document.getElementsByTagName('head')[0].appendChild(script);

This is an in-line code block, and should be a fenced code block.

Also, the version should be updated.

gaand commented 7 years ago

This happens on github:

VM155:1 Refused to load the script 'https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js' because it violates the following Content Security Policy directive: "script-src assets-cdn.github.com".

So we might want to mention it.

payne-chris-r commented 7 years ago

See #31

gaand commented 7 years ago

See my comment on #31