-
Notifications
You must be signed in to change notification settings - Fork 116
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
Conversation
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]' |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Uploading works?