Hi,
Is there a way to pick (prioritize the way objects appear on screen). For example I got a slider (using the widget) and then two videos. It always loads the videos before the top slider.
Thank you.
Printable View
Hi,
Is there a way to pick (prioritize the way objects appear on screen). For example I got a slider (using the widget) and then two videos. It always loads the videos before the top slider.
Thank you.
behzad, it's complicated. Assets are loaded in from top to bottom on where they appear in your HTML. A slider, however, is a collection of assets and there will be a limit to the number of calls your browser is making so even if thee are ahead of the videos, the additional calls may be stacked and may take time after the videos are called up.
Shapes and Placeholders that are on the design page can be sequenced in Xara using the Page & Layer gallery and Front and Back functions. The order in the HTML DOM top to bottom is Xara's Page & Layer gallery bottom to top so put the slider at the top and the videos under all else at the bottom.
I don't know of any means to re-order code put into the Page HTML code (body) but these all appear after the DOM is closed so fire up after the DOM has loaded.
Read this article: https://www.kirupa.com/html5/running...right_time.htm.
There are other techniques such as lazy loading that you might consider. All involve code so make your page harder to maintain.
Try putting the videos each in a layer and have a button link instead.
Acorn
Merci Sir. Your a wealth of knowledge.