**/
(function ($, Drupal, drupalSettings) {
+ function mapTextContentToAjaxResponse(content) {
+ if (content === '') {
+ return false;
+ }
+
+ try {
+ return JSON.parse(content);
+ } catch (e) {
+ return false;
+ }
+ }
+
function bigPipeProcessPlaceholderReplacement(index, placeholderReplacement) {
var placeholderId = placeholderReplacement.getAttribute('data-big-pipe-replacement-for-placeholder-with-id');
var content = this.textContent.trim();
}
}
- function mapTextContentToAjaxResponse(content) {
- if (content === '') {
- return false;
- }
+ var interval = drupalSettings.bigPipeInterval || 50;
- try {
- return JSON.parse(content);
- } catch (e) {
- return false;
- }
- }
+ var timeoutID = void 0;
function bigPipeProcessDocument(context) {
if (!context.querySelector('script[data-big-pipe-event="start"]')) {
}, interval);
}
- var interval = drupalSettings.bigPipeInterval || 50;
-
- var timeoutID = void 0;
-
bigPipeProcess();
$(window).on('load', function () {