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

Implement Google's page speed suggestions #61

Merged
merged 3 commits into from
Oct 27, 2016
Merged

Conversation

durka
Copy link
Contributor

@durka durka commented Oct 26, 2016

These commits minify local scripts (except main.js) using YUI Compressor, mark all scripts (except main.js again) as async so they don't block page load, and shrink the logo image to a size closer to how it gets displayed.

This nets us a ~13% reduction in page size and ~35% speedup in terms of waiting for DOMContentLoaded (time to fully loaded page is pretty much the same). In reality the background selfies are randomly selected, which changes both measures (in my testing I removed the randomness, but the measurements were still noisy).

I tried minifying main.css, but it somehow introduced a bug. It would also help to minify main.js, but then we'd have to redo that step every time we modify it, and I don't want our site to have a Makefile so I didn't do that.

cc #56

Copy link
Contributor

@dglazkov dglazkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dglazkov dglazkov merged commit 0d80786 into DevProgress:master Oct 27, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants