Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Lazy loading of a component?

 Post Reply Post Reply
Author
Stephen Pienaar View Drop Down
New Member
New Member
Avatar

Joined: 13 Jan 2020
Posts: 6
Post Options Post Options   Quote Stephen Pienaar Quote  Post ReplyReply Direct Link To This Post Topic: Lazy loading of a component?
    Posted: 17 Jan 2020 at 3:38pm
In Angular, we have the option to lazy-load components based on the route. In other words, we can have small main applications that loads in additional components on as as-needed bases. This has a great speed advantage.

It does not seem like Web Core has this kind of behaviour out of the box. But there is likely a trick or two one could use to achieve this kind of behaviour. Let's say we have common logic for opening (uploading) and saving (downloading files) that we use in multipe client applications. Maybe we can build that logic as a seperate Web Core application; let's call it FileOpenSave. And then in each of the client applications we then load the FileOpenSave Javascript into a panel when needed.

Any general suggestions on how you think one can do this? Thanks!
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8712
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 20 Jan 2020 at 10:16pm
That is an interesting suggestion. So far, we have not yet experimented with this.
I believe that when you would compile per unit (a .JS file for each unit) and then properly make-up the .JS files includes in the HTML file of each form, it might work. As said, we did not experiment with this ourselves but we've taken note and when time allows, we will do so.
Back to Top
Stephen Pienaar View Drop Down
New Member
New Member
Avatar

Joined: 13 Jan 2020
Posts: 6
Post Options Post Options   Quote Stephen Pienaar Quote  Post ReplyReply Direct Link To This Post Posted: 21 Jan 2020 at 10:38am
Thanks Bruno. We will play with your idea.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down