Welcome to TalkGraphics.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Location
    Canada
    Posts
    3,338

    Default picking the order at which it loads

    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.

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,746

    Default Re: picking the order at which it loads

    Quote Originally Posted by behzad View Post
    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
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #3
    Join Date
    May 2002
    Location
    Canada
    Posts
    3,338

    Default Re: picking the order at which it loads

    Merci Sir. Your a wealth of knowledge.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •