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

Add an option to move all JS below the fold #741

Merged
merged 1 commit into from
Nov 8, 2016

Conversation

gigabo
Copy link
Contributor

@gigabo gigabo commented Nov 7, 2016

This can improve the performance of above the fold render by eliminating
resource competition due to network I/O and synchronous JS parse.

This is an opt-in feature triggered by a jsBelowTheFold key in the response
from handleRoute.

handleRoute() {
  return {
    code           : 200,
    jsBelowTheFold : true,
}

This can improve the performance of above the fold render by eliminating
resource competition due to network I/O and synchronous JS parse.

This is an opt-in feature triggered by a `jsBelowTheFold` key in the response
from `handleRoute`.

```javascript
handleRoute() {
  return {
    code           : 200,
    jsBelowTheFold : true,
}
```
@gigabo gigabo merged commit 0cfb31f into redfin:master Nov 8, 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