Welcome to TalkGraphics.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2018
    Location
    Morelos, Mexico
    Posts
    236

    Default Graphic files or only code in modern browsers?

    Hi everyone! I’m new to this forum, but I’m not new to Xara Web Designer. I started using it in 2014 for our boutique hotel website (it took me about four months to learn WDP10 from scratch, get the website designed, and get it on-line). I’ve revised our site every year and a half or so. And now is the time to start again 😉.

    I’m looking to understand how the websites produced by Xara are handled by web browsers.

    Xara generates HTML5 code that produces many of the basic shapes, like rectangles, rounded rectangles, certain shadows, gradients, and transparencies, etc., directly from the code. At the same time, Xara generates graphic versions (e.g., png and jpeg) of the same objects that are stored in the index_htm_files folder. If I am not mistaken, these are specifically for Internet Explorer browsers from 8 and earlier, which cannot produce the shapes from code and must insert the graphic image, obviously requiring a great deal of bandwidth to download. You can see in the code how Xara directs the browser to the appropriate method in the <!--[if lt IE 9]> and <!--[if gte IE 9]> pairings.

    My question is, if someone happens to know: In the case of a modern browser, like Chrome or even IE10, that generate the shapes via code, are the graphic versions of the objects downloaded onto the user’s computer, even if they will not be utilized in generating the page? Or are those image files accessed only when specifically directed by the code (e.g., if lt IE9)?

    I appreciate any input.

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,487

    Default Re: Graphic files or only code in modern browsers?

    Welcome to TalkGraphics

    I haven't the foggiest idea. But I am sure that some of the members will have the long (and more helpful) answer. Check back.

  3. #3
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,895

    Default Re: Graphic files or only code in modern browsers?

    My question is, if someone happens to know: In the case of a modern browser, like Chrome or even IE10, that generate the shapes via code, are the graphic versions of the objects downloaded onto the user’s computer, even if they will not be utilized in generating the page?
    Hi gcellison and welcome to TG.

    Xara does do as you state, creating an image if the browser requires it. As a quick experiment I created a simple test file containing a linear filled rectangle and the default bitmap (attached) If you go File / Export Website to your local drive you can open the index_htm_files folder and see that it does indeed contain a very thin bitmap for the linear fill.

    However if you open the index.htm file in a modern browser, I used FireFox , Click over the default bitmap and select View image info it displays all the images within the browser. The linear fill bitmap has not been loaded. So I think you can safely say that the graphics version is not downloaded.
    Attached Files Attached Files
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  4. #4
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,745

    Default Re: Graphic files or only code in modern browsers?

    Egg is correct. What the Xara developers have done is use conditional comments with a conditional expression so that the image fetch is never executed (actually, anything between the pair of double hyphens) when not needed and similar when it is.The statements are effectively either ors.
    Version checking is a very powerful tool when covering browsers that don't understand conditional comments: https://docs.microsoft.com/en-us/pre...ectedfrom=MSDN.

    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

  5. #5
    Join Date
    Mar 2018
    Location
    Morelos, Mexico
    Posts
    236

    Default Re: Graphic files or only code in modern browsers?

    Thanks gwpriester, Egg, and Acorn! It seemed logical that those large graphics files would not be downloaded in the modern browsers since they aren't necessary. Nevertheless, I wanted to be sure. It will help me choose which types of graphic elements I will tend toward in my redesign. Cheers!

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

    Default Re: Graphic files or only code in modern browsers?

    Thanks Acorn. I may have been correct but I could never have expressed it so succinctly as you did
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

 

 

Tags for this Thread

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
  •