Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Loading order

  1. #1
    Join Date
    May 2002
    Location
    Canada
    Posts
    3,345

    Default Loading order

    Is there a way to instruct the program to display graphics/items at the right order, from top to bottom? I have seen examples of web designer and xara pro websites where things are not loaded yet from top to bottom as the user scrolls.

    I am sure you too have come across this. Take for example the site I did below, Ideally I want the red color background to display first then the other items to appear.

    http://www.popeyespizza.ca/

  2. #2

    Default Re: Loading order

    Give the items you want to load after a longer delay on their reveal animation.

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

    Default Re: Loading order

    Thx, but I am not using animation on these. This is just how things displayed on web browsers. It is out of my control.

  4. #4
    Join Date
    Sep 2000
    Location
    Bracknell, UK
    Posts
    8,659

    Default Re: Loading order

    I am not aware of Xara being able to do this. On other sites, you can lazy-load assets. I don't think Xara does that. Not on my ancient version, anyway.

  5. #5
    Join Date
    May 2002
    Location
    Canada
    Posts
    3,345

    Default Re: Loading order

    Would be nice if the background loads up first.

  6. #6
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,952

    Default Re: Loading order

    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  7. #7
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,530

    Default Re: Loading order

    Well spotted Egg.

  8. #8
    Join Date
    May 2002
    Location
    Canada
    Posts
    3,345

    Default Re: Loading order

    Merci to both

  9. #9
    Join Date
    Jan 2010
    Location
    Bradford, England
    Posts
    1,829

    Default Re: Loading order

    If I'm getting this straight you want certain elements to become visible as the user scrolls down the site? If so that you can use animate.css to achieve this, I don't know how it would work in xara (not used in a while) but the code is:

    Use the following code to reference the actual script

    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/wow/1.0.3/wow.min.js"></script>
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.1/animate.min.css">


    Then you would add the following code, an example of the code would be:

    <script>
    $('.elem-1').addClass('wow slideInLeft');
    $('.elem-2').addClass('wow slideInRight');
    $('.elem-3').addClass('wow slideInLeft');
    $('.elem-4').addClass('wow slideInRight');
    </script>

    <script>
    $('.elem-1').attr({'data-wow-duration':'1s', 'data-wow-delay':'0.3s'});
    $('.elem-2').attr({'data-wow-duration':'1s', 'data-wow-delay':'0.3s'});
    $('.elem-3').attr({'data-wow-duration':'1s', 'data-wow-delay':'0.3s'});
    $('.elem-4').attr({'data-wow-duration':'1s', 'data-wow-delay':'0.3s'});
    </script>

    <script>
    new WOW().init();
    </script>

    .elem-1 is the name you give to the element you want to animate

    The first half of the code adds the animation you want for each element and the second half of the code introduces the delay. You can check the full animation set at http://daneden.github.io/animate.css/

    If this is what you are looking for I hope it works for you in xara. Like I said not sure how it's used but it's usually just inserted in the head or body sections and as far as I can remember one is able to give names to elements in xara.
    Flawless Form. Faultless Function. Crafted by Cloud

    https://www.cloudwebagency.co.uk

  10. #10
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,921

    Default Re: Loading order

    A small contribution.

    If you use flat colour rectangles for backgrounds then these are loaded in very quickly as they are rendered as SPANs with a background-color so no image fetch is needed.
    There are CSS enhancements that can be used to modify these without resorting to images at all.

    Once you get started, you start creating CSS buttons and CSS NavBars...

    The CSS approach to early image loading would be to set up a pre-fetch like:
    <style>#preloadBackground { background: url(index_htm_files/background.jpg) no-repeat -9999px -9999px; }</style>
    in the Page's header. You need to Name the image with filename="background".

    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

 

 

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
  •