Commit 0b99b3f9 authored by Lukas Eipert's avatar Lukas Eipert

Move jquery.waitforimages import away from main

This moves the import of `jquery.waitforimages` from main to
- `app/assets/javascripts/commit/image_file.js`
- `app/assets/javascripts/pages/projects/show/index.js`
- `app/assets/javascripts/pages/projects/tree/show/index.js`

These are the only files which utilize it and thus we don't need to load
it on every page.

The issue to replace it completely can be found here:
https://gitlab.com/gitlab-org/gitlab/-/issues/219370
parent 9766ca6f
/* eslint-disable func-names, consistent-return, one-var, no-return-assign */
import $ from 'jquery';
import 'jquery.waitforimages';
// Width where images must fits in, for 2-up this gets divided by 2
const availWidth = 900;
......
......@@ -6,4 +6,3 @@ import 'vendor/jquery.endless-scroll';
import 'jquery.caret'; // must be imported before at.js
import '@gitlab/at.js';
import 'vendor/jquery.scrollTo';
import 'jquery.waitforimages';
import $ from 'jquery';
import 'jquery.waitforimages';
import initBlob from '~/blob_edit/blob_bundle';
import ShortcutsNavigation from '~/behaviors/shortcuts/shortcuts_navigation';
import NotificationsForm from '~/notifications_form';
......
import $ from 'jquery';
import 'jquery.waitforimages';
import Vue from 'vue';
import initBlob from '~/blob_edit/blob_bundle';
import commitPipelineStatus from '~/projects/tree/components/commit_pipeline_status_component.vue';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment