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

Instant feel #488

Merged
merged 1 commit into from
Oct 23, 2020
Merged

Instant feel #488

merged 1 commit into from
Oct 23, 2020

Conversation

Mikescops
Copy link
Member

Implement a Service Worker to cache images and improve display of already loaded images.

Thanks a lot to @skjnldsv for the help here and there.

The gallery feels so great now!

Closes #232

@Mikescops Mikescops added enhancement New feature or request 3. to review Waiting for reviews labels Oct 16, 2020
@Mikescops Mikescops self-assigned this Oct 16, 2020
@skjnldsv
Copy link
Member

/compile amend /


$policy = new ContentSecurityPolicy();
$policy->addAllowedWorkerSrcDomain("'self'");
$policy->addAllowedScriptDomain('blob:');
Copy link
Member

Choose a reason for hiding this comment

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

Safe enough @rullzer ?

Copy link
Member

Choose a reason for hiding this comment

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

how is the script all of a sudden a blob?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

@rullzer I updated it to be "self"

Copy link
Member

Choose a reason for hiding this comment

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

ah ok I know why it is confusing me. Normally we only run it with nonce.
Self is a lot better yeah.
And we can always thighen it later on.

@tacruc
Copy link

tacruc commented Oct 17, 2020

Tested and works nicely for me 👍

@Mikescops Mikescops force-pushed the feature/instant-feel branch from ee35252 to a8b9203 Compare October 17, 2020 09:38
@Mikescops
Copy link
Member Author

/compile amend /

@Mikescops
Copy link
Member Author

/compile amend /

Copy link
Member

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

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

Good stuff @Mikescops, no more flickering! :)

@Mikescops Mikescops requested a review from rullzer October 23, 2020 09:20
@skjnldsv
Copy link
Member

Please rebase and ship production files :)

@Mikescops Mikescops force-pushed the feature/instant-feel branch 2 times, most recently from fd06f48 to e4f985d Compare October 23, 2020 12:59
Signed-off-by: Corentin Mors <corentin.mors@dashlane.com>
@Mikescops Mikescops force-pushed the feature/instant-feel branch from e4f985d to b28469b Compare October 23, 2020 13:05
@Mikescops Mikescops merged commit 127c4f4 into master Oct 23, 2020
@Mikescops Mikescops deleted the feature/instant-feel branch October 23, 2020 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scrolling of already loaded photos is not smooth, previews get unloaded
5 participants