Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / responsive_image / js / responsive_image.ajax.es6.js
diff --git a/web/core/modules/responsive_image/js/responsive_image.ajax.es6.js b/web/core/modules/responsive_image/js/responsive_image.ajax.es6.js
new file mode 100644 (file)
index 0000000..64f630d
--- /dev/null
@@ -0,0 +1,12 @@
+(function (Drupal) {
+  /**
+   * Call picturefill so newly added responsive images are processed.
+   */
+  Drupal.behaviors.responsiveImageAJAX = {
+    attach() {
+      if (window.picturefill) {
+        window.picturefill();
+      }
+    },
+  };
+}(Drupal));