-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I've got a piece of code (JS) that needs to be loaded in my page. Unfortunately, loading this piece of c can take longer and it's preventing the browser from displaying the rest, waiting for the component to load. So I would need something like this:
a) Load the component parallelly, thus not stopping the browser from displaying the page while the component is not yet loaded.
b) Wait for the browser to display the page, then load the component correctly. I tried that with a listener for On_Render events, but it never fired.
What would be a good way to solve that problem?
I already had a look at the LongOperations, but nothing there seems to allow me starting it when a component is shown in the browser - and I don't want to put some arbitrary wait time in there.
Also: Who thought it a good idea to make the comment function not usable for people without x karma? Honestly, copying Stackoverflow seems a really bad idea for a support forum (including paying zk customers) will not have dozens of karma points...
Hello FlorianSchaetz,
You can read the following small talk which provides a lot of useful information on how to accomplish your task:
http://books.zkoss.org/wiki/SmallTalks/2015/January/SimplifyLongOperationHandlings
Please let me know if you need more assistance.
Best Regards,
Darksu
Asked: 2015-09-07 12:36:13 +0800
Seen: 36 times
Last updated: Sep 07 '15
composite component help [closed]
EL in a forEach @command not working?
Different template for each grid row
Cardlayout animation is broken
Grid RowRender slow using 6.5.1 and sizable=true
setVisible(false), component will load or not
Decimalbox and doublebox value rounded on iPad
history management with page status