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

[stable27] Reduce load of files versions preview loading #39119

Merged
merged 4 commits into from
Jul 5, 2023

Commits on Jul 3, 2023

  1. Provide hasPreview in files_versions DAV API

    This allow to no request non existing previews
    I also set some properties to the img element to reduce preview loading to what the browser think is necessary
    
    Signed-off-by: Louis Chemineau <louis@chmn.me>
    artonge committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    b164af4 View commit details
    Browse the repository at this point in the history
  2. Do not load preview if version tab is not active

    Signed-off-by: Louis Chemineau <louis@chmn.me>
    artonge committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    2e7d704 View commit details
    Browse the repository at this point in the history
  3. Compile assets

    Signed-off-by: Louis Chemineau <louis@chmn.me>
    artonge committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    97a72b1 View commit details
    Browse the repository at this point in the history
  4. Base versions' has-preview on mimetype

    Signed-off-by: Louis Chemineau <louis@chmn.me>
    artonge committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    859552b View commit details
    Browse the repository at this point in the history