discourse/public/javascripts
Martin Brennan 2461ed303c
DEV: Move loadLibs to explicit install message in media-optimization-worker (#14707)
Previously, `loadLibs` was called inside the `optimize` function of
the media-optimization-worker, which meant that it could be hit
multiple times causing load errors (as seen in b69c2f7311)

This commit moves that call to a specific message handler (the `install` message)
for the service worker, and refactors the service for the media-optimization-worker
to wait for this installation to complete before continuing with processing
image optimizations.

This way, we know for sure based on promises and worker messages
that the worker is installed and has all required libraries
loaded before we continue on with attempting any processing. The
change made in b69c2f7311 is no
longer needed with this commit.
2021-10-25 13:17:43 +10:00
..
@json-editor/json-editor/2.5.2 DEV: Add experimental json_scheme site setting type (#12226) 2021-03-01 09:15:17 -05:00
ace DEV: Upgrade ACE Editor to 1.4.12, remove extra ACE files (#10431) 2020-08-13 21:53:27 -04:00
ace.js/1.4.12 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
chart.js/3.5.1 DEV: updates chart.js to 3.5.1 (#14107) 2021-08-23 13:49:49 +02:00
chartjs-plugin-datalabels/2.0.0 DEV: updates chart.js to 3.5.1 (#14107) 2021-08-23 13:49:49 +02:00
diffhtml/1.0.0-beta.20 FIX: Resolve short URLs after diffHTML was loaded (#14296) 2021-09-09 16:25:58 +03:00
magnific-popup/1.1.0 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
pikaday/1.8.0 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
spectrum-colorpicker/1.8.0 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
squoosh FEATURE: Optimize images before upload (#13432) 2021-06-23 12:31:12 -03:00
workbox DEV: enable CORS to all CDN get requests from workbox. (#11896) 2021-02-02 11:38:29 +05:30
Chart.min.js DEV: Update chart.js from 2.9.3 to 2.9.4 (#13026) 2021-05-12 17:28:16 +02:00
chartjs-plugin-datalabels.min.js FEATURE: Poll breakdown 2.0 (#10345) 2020-08-06 17:57:06 +02:00
count.js
diffhtml.min.js FIX: Resolve short URLs after diffHTML was loaded (#14296) 2021-09-09 16:25:58 +03:00
embed-topics.js FIX: The attribute is discourse-url not data-discourse-url 2020-10-28 17:12:29 -04:00
embed.js FEATURE: Use "no-referrer-when-downgrade" as our embed policy 2020-10-16 13:23:06 -04:00
jquery.magnific-popup.min.js
media-optimization-worker.js DEV: Move loadLibs to explicit install message in media-optimization-worker (#14707) 2021-10-25 13:17:43 +10:00
pikaday.js
spectrum.css
spectrum.js