Remove CDN load test (#17308)

GitOrigin-RevId: 6f8f840bb8a3db0944179c7c25b89f1793f033bc
This commit is contained in:
Alf Eaton 2024-02-27 10:30:23 +00:00 committed by Copybot
parent ef6644f519
commit 7b93640b96
5 changed files with 0 additions and 19 deletions

View file

@ -1,15 +0,0 @@
import { captureMessage } from './infrastructure/error-reporter'
if (window.ExposedSettings.isOverleaf) {
const cdnLoadTest = document.createElement('img')
cdnLoadTest.addEventListener('error', function () {
captureMessage('CDN test 2 image load error (cdn.overleaf.net)')
})
cdnLoadTest.src = 'https://cdn.overleaf.net/img/1p.gif'
const cdnLoadTestOld = document.createElement('img')
cdnLoadTestOld.addEventListener('error', function () {
captureMessage('CDN test 2 image load error (cdn.overleaf.com)')
})
cdnLoadTestOld.src = 'https://cdn.overleaf.com/img/1p.gif'
}

View file

@ -17,7 +17,6 @@ import './main/subscription/team-invite-controller' // used in subscriptions/tea
import './directives/eventTracking' // used in lots of places import './directives/eventTracking' // used in lots of places
import './features/cookie-banner' import './features/cookie-banner'
import '../../modules/modules-main' import '../../modules/modules-main'
import './cdn-load-test' // TODO: remove this?
import { debugConsole } from '@/utils/debugging' import { debugConsole } from '@/utils/debugging'
angular.module('OverleafApp').config([ angular.module('OverleafApp').config([
'$locationProvider', '$locationProvider',

View file

@ -2,7 +2,6 @@ import './utils/webpack-public-path'
import './infrastructure/error-reporter' import './infrastructure/error-reporter'
import 'jquery' import 'jquery'
import 'bootstrap' import 'bootstrap'
import './cdn-load-test'
import './features/form-helpers/hydrate-form' import './features/form-helpers/hydrate-form'
import './features/link-helpers/slow-link' import './features/link-helpers/slow-link'
import './features/bookmarkable-tab' import './features/bookmarkable-tab'

View file

@ -4,7 +4,6 @@ import './../utils/meta'
import './../utils/webpack-public-path' import './../utils/webpack-public-path'
import './../infrastructure/error-reporter' import './../infrastructure/error-reporter'
import './../i18n' import './../i18n'
import '../cdn-load-test'
import '../features/contact-form' import '../features/contact-form'
import '../features/event-tracking' import '../features/event-tracking'
import '../features/cookie-banner' import '../features/cookie-banner'

View file

@ -4,7 +4,6 @@ import './../../../utils/meta'
import './../../../utils/webpack-public-path' import './../../../utils/webpack-public-path'
import './../../../infrastructure/error-reporter' import './../../../infrastructure/error-reporter'
import './../../../i18n' import './../../../i18n'
import '../../../cdn-load-test'
import '../../../features/contact-form' import '../../../features/contact-form'
import '../../../features/event-tracking' import '../../../features/event-tracking'
import '../../../features/cookie-banner' import '../../../features/cookie-banner'