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

New: Preload for presentation viewer #12

Merged
merged 1 commit into from
Mar 24, 2017
Merged

New: Preload for presentation viewer #12

merged 1 commit into from
Mar 24, 2017

Conversation

tonyjin
Copy link
Contributor

@tonyjin tonyjin commented Mar 23, 2017

  • Moving show/hide preload functions to DocBase
  • Moving loading icon for documents/presentations to base directory in output
  • Separate styles for document and presentation preload

@@ -62,7 +62,7 @@ module.exports = (language) => {
test: /\.(jpe?g|png|gif|woff2|woff)$/,
loader: 'file-loader',
options: {
name: '[path][name].[ext]'
name: '[name].[ext]'
Copy link
Contributor

Choose a reason for hiding this comment

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

Make sure images are not being created/repeated per locale.
It should be at a higher level so that all locales use the same image.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Like we discussed, this image is small and was already placed in the locale repos previously.

- Moving show/hide preload functions to DocBase
- Moving loading icon for documents/presentations to base directory in output
- Separate styles for document and presentation preload
- Add simple validation logic for reading EXIF from preload image
- Don't preload or prefetch if file is watermarked
*/
hidePreload() {
this.docPreloader.hidePreload();
this.preloader.removeAllListeners('preload');
Copy link
Contributor

Choose a reason for hiding this comment

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

are we planning on adding more listeners?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not for now - if we do it'll make sense to break it out into a separate function.

@tonyjin tonyjin merged commit 94b11bc into box:master Mar 24, 2017
@tonyjin tonyjin deleted the presentation-preload branch March 24, 2017 23:09
benjamin-shen pushed a commit to benjamin-shen/box-content-preview that referenced this pull request Jun 29, 2022
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.

3 participants