8000 Fix preload state leak by ksheedlo · Pull Request #117 · fusionjs/fusion-plugin-font-loader-react · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 17, 2019. It is now read-only.

Fix preload state leak#117

Merged
old-fusion-bot[bot] merged 3 commits intofusionjs:masterfrom
ksheedlo:fresh-preload-per-page
Oct 1, 2018
Merged

Fix preload state leak#117
old-fusion-bot[bot] merged 3 commits intofusionjs:masterfrom
ksheedlo:fresh-preload-per-page

Conversation

@ksheedlo
Copy link
Contributor

I noticed the plugin was preloading fonts not based on what was rendered in the current request, but actually the set of all fonts that have been rendered by the server process in all subsequent requests. To minimize unnecessary preloads, this diff introduces a preload engine to keep track of the fonts that were rendered in the current request.

@CLAassistant
Copy link
CLAassistant commented Sep 26, 2018

CLA assistant check
All committers have signed the CLA.

@ksheedlo ksheedlo changed the title Clear the preload state on each page load Fix preload state leak Sep 26, 2018
@angus-c angus-c added bug bugfix and removed bug labels Sep 26, 2018
angus-c
angus-c previously approved these changes Sep 26, 2018
Copy link
Contributor
@angus-c angus-c left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@ksheedlo
Copy link
Contributor Author

!merge

@codecov
Copy link
codecov bot commented Oct 1, 2018

Codecov Report

Merging #117 into master will increase coverage by 1.21%.
The diff coverage is 45.45%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #117      +/-   ##
==========================================
+ Coverage      48%   49.21%   +1.21%     
==========================================
  Files           8        9       +1     
  Lines         125      128       +3     
  Branches       21       21              
==========================================
+ Hits           60       63       +3     
  Misses         65       65
Impacted Files Coverage Δ
src/plugin.js 93.33% <100%> (+26.66%) ⬆️
src/preload-session.js 33.33% <33.33%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 202adc4...327ccb0. Read the comment docs.

@KevinGrandon
Copy link
Contributor

!merge

@old-fusion-bot old-fusion-bot bot merged commit 606e45a into fusionjs:master Oct 1, 2018
@alxmyth alxmyth mentioned this pull request Oct 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

0