Repository navigation
Provide a way to let us load the Editor JS/CSS into our main app.js/app.css files #1741
Replies: 2 comments 1 reply
|
Mr. @ianlandsman! Yep, agreed! I think that we should be able to bundle the editor assets in But I am curious as to why you are getting a lag. When Livewire includes the assets, they are appended to the end of the |
|
Hey! So looking at this more closely I guess it is getting the browser cache headers so it's only the first load. So that's not too bad. There is still a bit of a delay in the editor loading but that may just be tiptap setting up. It also does the thing where the input box is small to start and expands once it's fully loaded, but that kinda makes it feel slow if you know what I mean but I can probably tweak that with some CSS. I'm not currently bundling the flux scripts is there a way to do that? I don't think I've ever seen any docs on that. |
Uh oh!
There was an error while loading. Please reload this page.
Hey!
Dynamically loading the JS/CSS only when the Editor is used on a page causes a noticeable lag. For my application (and honestly I think for most that use this kind of editor) it's a much better experience to load all that as part of the app bundle so that it's only loaded once and the users browser/cdn's can just have the whole thing cached for a much faster time all around.
If we could have an option to turn off the dynamic loading and manually bundle it that would be great 👍
All reactions