@quintype/framework 7.28.4-image-below-fold.1 → 7.28.4-image-below-fold.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -201,6 +201,7 @@ function createStoreFromResult(url, result, opts = {}) {
|
|
|
201
201
|
currentHostUrl: result.currentHostUrl,
|
|
202
202
|
primaryHostUrl: result.primaryHostUrl,
|
|
203
203
|
isBotRequest: isBotRequest,
|
|
204
|
+
lazyLoadImageMargin: opts.lazyLoadImageMargin,
|
|
204
205
|
};
|
|
205
206
|
return createBasicStore(result, qt, opts);
|
|
206
207
|
}
|
|
@@ -463,6 +464,7 @@ exports.handleIsomorphicRoute = function handleIsomorphicRoute(
|
|
|
463
464
|
ampPageBasePath,
|
|
464
465
|
externalIdPattern,
|
|
465
466
|
enableExternalStories,
|
|
467
|
+
lazyLoadImageMargin,
|
|
466
468
|
}
|
|
467
469
|
) {
|
|
468
470
|
const url = urlLib.parse(req.url, true);
|
|
@@ -486,6 +488,7 @@ exports.handleIsomorphicRoute = function handleIsomorphicRoute(
|
|
|
486
488
|
|
|
487
489
|
const store = createStoreFromResult(url, result, {
|
|
488
490
|
disableIsomorphicComponent: statusCode != 200,
|
|
491
|
+
lazyLoadImageMargin,
|
|
489
492
|
});
|
|
490
493
|
|
|
491
494
|
if (lightPages) {
|
package/server/routes.js
CHANGED
|
@@ -355,6 +355,7 @@ exports.isomorphicRoutes = function isomorphicRoutes(
|
|
|
355
355
|
webengageConfig = {},
|
|
356
356
|
externalIdPattern = "",
|
|
357
357
|
enableExternalStories = false,
|
|
358
|
+
lazyLoadImageMargin,
|
|
358
359
|
}
|
|
359
360
|
) {
|
|
360
361
|
const withConfig = withConfigPartial(getClient, logError, publisherConfig, configWrapper);
|
|
@@ -547,6 +548,7 @@ exports.isomorphicRoutes = function isomorphicRoutes(
|
|
|
547
548
|
ampPageBasePath,
|
|
548
549
|
externalIdPattern,
|
|
549
550
|
enableExternalStories,
|
|
551
|
+
lazyLoadImageMargin,
|
|
550
552
|
})
|
|
551
553
|
);
|
|
552
554
|
|