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

Link 3rd-party stylesheets and JavaScript files via CDN #31

Closed
howdyjessie opened this issue Aug 18, 2015 · 2 comments
Closed

Link 3rd-party stylesheets and JavaScript files via CDN #31

howdyjessie opened this issue Aug 18, 2015 · 2 comments

Comments

@howdyjessie
Copy link
Contributor

Instead of including the files with chaise, we should let a CDN host it for us to improve site speed, especially for popular tools on popular CDNs — like using Google's hosted jQuery.

@karlcz
Copy link
Contributor

karlcz commented Aug 18, 2015

I would disagree with making our sites have an unnecessary run-time
dependency which we do not control nor sub-contract.

If we really have an optimization goal for a remote client where the
CDN-based cache helps dramatically, we would need to consider how to
apply the CDN benefit to all our real science assets as part of the
solution. I don't think a few JS libraries or other static files are
worth targeting on their own.

But, if these static assets are a substantial part of the request
latency, we should consider how to solve that from our own hosted
copies. For example: minification, pre-compressed encodings, removing
gratuitous asset references, combining many small assets into a few
larger ones, or introducing asynchronous prefetching so the UX does
something useful prior to fetching everything.

@howdyjessie
Copy link
Contributor Author

Hmm I didn't think about the dependency control thing 😞

Actually, I was looking at PageSpeed Insights to see how we could speed up Chaise, and its suggestions overlap with a lot of your suggestions as well. Perhaps we could use PageSpeed like a checklist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants