Question

In: Computer Science

Suppose that you are creating a website for an organization that wants the site to include...

Suppose that you are creating a website for an organization that wants the site to include a photo gallery containing hundreds of high resolution photographs. What would happen to the page download time if you include all the photographs on one page, in their native size and resolution? What can you do to change the download time of such a page? Please explain your reasoning.

Solutions

Expert Solution

ANSWER:

If we create a website for a particular company and that company wants you to include a photo gallery that contains many high resolution images. This will definately slow down the page load time of the website.

Here are the main reasons images slow down your page load time:

  • Image files are too large.
  • Synchronous loading of elements.
  • Too many images and HTTP request.

1) Image files are too large-

It can take a long time to download image files that are too large.
Large images, high resolution images, and uncompressed images can dramatically slow down page load times.

How to fix it:
Display size

  • Choose the optimal width and height to display images on various end-user devices such as desktop, laptop, tablet, smartphone.
  • Don't use one big image and scale the display size with the width and height attributes of the IMG element. Instead, create and save files of varying sizes.

Resolution

  • A standard 15-inch laptop screen can display around 100 pixels per inch (pixels per inch) or dots per inch (dots per inch). It doesn't make sense to serve images at 300dpi.
  • The standard resolution for displaying images on web pages is 72 PPI. 300 dpi is required for printing, not screens. Almost all screens have a range of 72 to 100 PPI.

2) Synchronous loading of HTML, CSS, JavaScript and images
When your web page synchronously loads all HTML, CSS, JavaScript, and images together, the initial render time can be very long. Images can take up a significant portion of the rendering time.

How to fix it:

  • Defer loading images. Instead, load them asynchronously after rendering the required CSS and HTML. Images can be placed below the fold and conditionally loaded using JavaScript when the visitor scrolls down to the relevant part of the page.
  • It also reduces the number of HTTP requests during initial page load.

3) Too many images and HTTP requests
One server connection is required for each image file that is linked on the web page.

Too many images on a web page not only increase the size of the load, but can also block the connection to the server by sending more than allowed HTTP requests.

How to fix it:
Reduce the number of images

Use images sparingly. Keep the number below five.

Update server

  • Shared hosting provides limited resources to every website that shares a server. The most important limitation is the number of concurrent connections allowed for each site, usually less than ten.
  • This not only reduces the number of file requests you can make, but it also limits the number of concurrent visitors your site can view.
  • Upgrading to a VPS (Virtual Private Server) can help you overcome this limitation to some extent. Some vendors like DigitalOcean, UpCloud, Linode, Vultr provide a basic VPS for less than $ 5 per month.

What if the number of images on your site cannot be reduced?

->If the content on your page is not primarily related to a particular image, it is wise to place a thumbnail image next to the content and link it to the original image.

If you are satisfied by my answer please give a thumbs up. Thank you.


Related Solutions

Scenario Suppose you work for a wildlife conservation organization. You are working on creating a system...
Scenario Suppose you work for a wildlife conservation organization. You are working on creating a system to educate the general public about different animals and get them more interested in conservation. Aim Create a Eagle class that inherits from the Bird class and has a clutch size (eggs laid in one nesting) attribute. Change the behavior of instances of the Eagle class to include this clutch size fact when they're printed. Steps for Completion Go to your main.py file. Define...
An investment website can tell what devices are used to access the site. The site managers...
An investment website can tell what devices are used to access the site. The site managers wonder whether they should enhance the facilities for trading via​ "smart phones", so they want to estimate the proportion of users who access the site that way​ (even if they also use their computers​ sometimes). They draw a random sample of 200200 investors from their customers. Suppose that the true proportion of smart phone users is 3737​%. ​a) What would the standard deviation of...
Visit the Bureau of Labor Statistics (Links to an external site.)Links to an external site. website...
Visit the Bureau of Labor Statistics (Links to an external site.)Links to an external site. website and explore the Consumer Price Index section. Read the "Current CPI Economic News Releases" and summarize the latest release. Did the CPI increase or decrease? What caused the index to increase or decrease? Explain. Visit the inflation calculator (Links to an external site.)Links to an external site. section and easily find out how the buying power of the dollar has changed over the years....
An investment website can tell what devices are used to access the site. The site managers...
An investment website can tell what devices are used to access the site. The site managers wonder whether they should enhance the facilities for trading via smartphones so they want to estimate the proportion of users who access the site using smartphones. They draw a random sample of 200 investors from their customers. Suppose that the true proportion of smartphone users is 36%. What would you expect the shape of the sampling distribution for the sample proportion to be? What...
Visit the Federal Reserve's Web site. Website: www.federalreserve.gov (Links to an external site.) (Links to an...
Visit the Federal Reserve's Web site. Website: www.federalreserve.gov (Links to an external site.) (Links to an external site.)Links to an external site. Hover over the third tab, “Monetary Policy” and click on Reports and then Beige Book to retrieve the summary report for current economic conditions by Federal Reserve District. Select the most current report. Then select the District where you live, have lived in the past, or where you are from originally (go to www.federalreserve.gov/otherfrb.htm (Links to an external...
An investment website can tell what devices are used to access the site. The site managers...
An investment website can tell what devices are used to access the site. The site managers wonder whether they should enhance the facilities for trading via​ "smart phones", so they want to estimate the proportion of users who access the site that way​ (even if they also use their computers​ sometimes). They draw a random sample of 200200 investors from their customers. Suppose that the true proportion of smart phone users is 3737​%. ​a) What would the standard deviation of...
First, search the internet for the official website of a nonprofit organization that interests you (The...
First, search the internet for the official website of a nonprofit organization that interests you (The American National Red Cross). When you review this website, locate the 2018 or 2019 financial statements. Use the financial statements you locate to answer the following questions: How does the audit opinion given to this nonprofit entity by its independent auditors differ from the audit opinion rendered on the financial statements for a for-profit business? What are some significant differences you see between the...
create a website that describes a city of your choice. The website must include the following...
create a website that describes a city of your choice. The website must include the following pages:  Home Page  Arts & Culture  News & Events  Recreation Requirements Write from scratch the HTML and CSS files and show your creativity, aesthetics and imagination. Begin by creating a wireframe diagram that indicates the structure of the web page . Use grammatically correct sentences that provide reasonable flow through each web page. Include the following:  Structural elements (header,...
A market analyst wants to know if the new website (Website A) he designed is showing...
A market analyst wants to know if the new website (Website A) he designed is showing increased page view per visit than his original website (Website B). A customer is randomly sent to one of the two different websites, offering the same products. Here are the summary statistics for the page views for each website. Website 1 Wesite 2 12 8 4 12 14 3 10 4 2 5 a. State/check the conditions for the appropriate hypothesis test. Be sure...
A business analyst wants to know if a new website design compared to an old website...
A business analyst wants to know if a new website design compared to an old website design is showing increased page views per visit. Two different samples of customers are randomly sent to one of two different websites, offering the same products, but with different designs. Use data from "website" sheet in excel. Is there a difference in average page views between the new and old website design? Which is the correct statistical test? Free-samples tea test One-sample t-test Independent-samples...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT