discourse/app/assets/javascripts/vendor.js
Sam 0ca61242b8 FEATURE: polyfill intersection observer for IE11 / iOS Safari
This feature is used for defer loading of images and in future for post cloaking

This gives us a polyfill so we can safely use the feature in problem browsers

The polyfill supports "polling" but it does not appear we need it yet.

If we discover anything odd here, consider setting poll interval per:

https://github.com/w3c/IntersectionObserver/tree/master/polyfill

```
var io = new IntersectionObserver(callback);
io.POLL_INTERVAL = 100; // Time in milliseconds.
```

Keeping the mutation observer cause we often mutate the DOM
2018-12-12 15:36:08 +11:00

36 lines
949 B
JavaScript

//= require logster
//= require ./discourse-objects
//= require template_include.js
//= require i18n-patches
//= require message-bus
//= require jquery.ui.widget.js
//= require Markdown.Converter.js
//= require bootbox.js
//= require bootstrap-modal.js
//= require div_resizer
//= require caret_position
//= require favcount.js
//= require jquery.ba-resize.js
//= require jquery.color.js
//= require jquery.cookie.js
//= require jquery.fileupload.js
//= require jquery.iframe-transport.js
//= require jquery.putcursoratend.js
//= require jquery.tagsinput.js
//= require jquery.sortable.js
//= require lodash.js
//= require modernizr.custom.00874.js
//= require mousetrap.js
//= require rsvp.js
//= require show-html.js
//= require break_string
//= require buffered-proxy
//= require jquery.autoellipsis-1.0.10
//= require virtual-dom
//= require virtual-dom-amd
//= require highlight.js
//= require htmlparser.js
//= require intersection-observer