Skip to content

Commit dddb407

Browse files
committed
MC-18601: Page Builder Render
1 parent 2179d0d commit dddb407

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type-factory.js

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/template/page-builder.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
<with args="stage">
2121
<render/>
2222
</with>
23-
<iframe width="100%" height="200" attr="src: config.render_url, id: 'render_frame_' + id" sandbox="allow-scripts"></iframe>
23+
<iframe width="1" height="1" attr="src: config.render_url, id: 'render_frame_' + id" sandbox="allow-scripts" style="display: none;"></iframe>
2424
</if>
2525
</div>

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type-factory.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ export default function createContentType(
3636
(resolve: (contentType: ContentTypeInterface | ContentTypeCollectionInterface) => void,
3737
reject: (error: string) => void,
3838
) => {
39-
const t0 = performance.now();
4039
loadModule([config.component], (contentTypeComponent: typeof ContentType) => {
41-
const t1 = performance.now();
42-
console.log("Call to load " + config.component + " took " + (t1 - t0) + " milliseconds.")
4340
try {
4441
const contentType = new contentTypeComponent(
4542
parentContentType,

0 commit comments

Comments
 (0)