Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract JS into separate files #20

Closed
haoqili opened this issue Jul 4, 2011 · 1 comment
Closed

Extract JS into separate files #20

haoqili opened this issue Jul 4, 2011 · 1 comment

Comments

@haoqili
Copy link
Owner

haoqili commented Jul 4, 2011

And follow other JS guidelines

@haoqili
Copy link
Owner Author

haoqili commented Jul 7, 2011

If you add 'X-Content-Security_Policy' to your HTTP Repsonse Header, remember to externalize all of your javascript as well as HTML event handlers like onclick() or else they would be treated like XSS and not run.

Good practice: put javascript right before </body>

Thanks to: jsocol, seanmonstar.

@haoqili haoqili closed this as completed Jul 7, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant