BUG: Switching pages calls canvas styles and scripts again and again #3468
Replies: 2 comments
-
@artf Can you please help? |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, switching pages creates a new iframe so, the behavior is correct. |
Beta Was this translation helpful? Give feedback.
-
Hi
I am integrating page manager into my project. But the issue I am facing is that whenever I switch between pages it loads CSS and script files given in canvas object at the time of init, again and again.
It makes the switching between pages slow.
Implementation:
grapesjs.init({
pageManager: {
pages: [
{
id: 'Page-1',
styles: ``, // or a JSON of styles
component: '', // or a JSON of components
name: 'Page 1',
},
],
},
})
after that, I am adding pages manually on click of a button
Beta Was this translation helpful? Give feedback.
All reactions