Skip to content

Conversation

ochrons
Copy link
Contributor

@ochrons ochrons commented Nov 27, 2015

Reduce the number of requests and optimize resources. Using googleapis.com seems to be blocked in China, so moved all fonts local with different variants to support all browsers.

Uses the jekyll-assets processing pipeline, so some assets were moved under _assets. Bundled CSS and JS are hashed to support forever caching.

Site colors are now configured in the style.scss file instead of Jekyll _config.yml.

Front page load went from 23 requests down to 11 requests.

@sjrd
Copy link
Member

sjrd commented Nov 27, 2015

Is assets/img/scala-js-site-logo.ai useful?

.gitignore Outdated
Copy link
Member

Choose a reason for hiding this comment

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

/.idea should not be there. If should be in your global gitignore file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, true, I'll remove it here.

@sjrd
Copy link
Member

sjrd commented Nov 27, 2015

With the potential rebase on top of #200, that's all.

@ochrons
Copy link
Contributor Author

ochrons commented Nov 27, 2015

assets/img/scala-js-site-logo.ai contains an editable version (where the text is real text, not just curves) of the logo. Needed for any changes in font etc.

@ochrons
Copy link
Contributor Author

ochrons commented Nov 27, 2015

I also fixed the problem with page.url not containing the extension (it was a change in Jekyll 3.0) that I had previously worked around.

Copy link
Member

Choose a reason for hiding this comment

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

Hum, so, if I understand this change correctly, this turns the top-left title text into an image. What motivated you to do this? To me, it seems this basically makes the user download two images instead of one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was to get rid of a font used solely for the site logo. Also alignment and sizing of the icon + text is difficult to control for different devices (especially if people zoom in/out), so a single logo image is better.

@sjrd
Copy link
Member

sjrd commented Nov 27, 2015

LGTM

sjrd added a commit that referenced this pull request Nov 27, 2015
Site performance optimizations.
@sjrd sjrd merged commit 31db3fd into scala-js:master Nov 27, 2015
@ochrons ochrons deleted the perf-opt branch November 30, 2015 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants