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
ace.js/1.4.12
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
pikaday/1.8.0
spectrum-colorpicker/1.8.0
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
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
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