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

Build: optimize JS more #185

Merged
merged 1 commit into from
Aug 15, 2016
Merged

Build: optimize JS more #185

merged 1 commit into from
Aug 15, 2016

Conversation

ForNeVeR
Copy link
Member

@ForNeVeR ForNeVeR commented Aug 15, 2016

This optimizes our JS from 1.2 MiB to just 200 kiB.

Closes #161.

@@ -10,7 +10,7 @@
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
<link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
<link rel="alternate" type="application/rss+xml" title="@title" href="@routes.Quotes.getRSSFeed()">
<script src="@routes.Assets.at("javascripts/loglist-scalajs-fastopt.js")"></script>
<script src="@routes.Assets.at("javascripts/loglist-scalajs-opt.js")"></script>
Copy link
Member

Choose a reason for hiding this comment

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

So now it's not fast but rather small, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not so fast, but, as you can see, it's 4 bytes smaller: fastopt -> opt!

Copy link
Member

Choose a reason for hiding this comment

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

Oh, it changes everything! Thanks for such a dramatic optimization!

@rexim
Copy link
Member

rexim commented Aug 15, 2016

LGTM, thanks! 👍

@rexim rexim assigned ForNeVeR and unassigned rexim Aug 15, 2016
@ForNeVeR ForNeVeR merged commit 2382d95 into master Aug 15, 2016
@ForNeVeR ForNeVeR deleted the feature/js-opt branch August 15, 2016 15:13
@rexim rexim mentioned this pull request Aug 15, 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.

2 participants