Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6603489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:01:12+00:00 2026-05-25T19:01:12+00:00

We are working on a protoype web application, targeted at the IPAD. We have

  • 0

We are working on a protoype web application, targeted at the IPAD. We have made great use of HTML5 and the app is working well.

Part of the requirement is to allow the app to switch between “Pages” in a fluid motion just like a native app.

So one of our suggestions is to change the way the web-app works. At present the app works much like a normal website, this presents problems when switching to pages with large images or animations (As they are loaded when the page switches).

Is it recommended to change our app so what the home page simply drags the new content (via AJAX) and manipulates the page accordingly, thus creating a so called single page app. Reducing the number and size of the http requests?

If this is the case and we wish to load the content via AJAX, how can we be sure that once we have dragged the content in, each of the images on the page have loaded. This will allow us to use a simple loading icon while the transition is taking place.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:01:13+00:00Added an answer on May 25, 2026 at 7:01 pm

    Is it recommended to change our app so what the home page simply drags the new content (via AJAX) and manipulates the page accordingly, thus creating a so called single page app. Reducing the number and size of the http requests?

    In a single-page app (SPA), the number of requests may not be reduced, but their size may be, b/c you will have to load your scripts and view only once, then just update relevant parts of the page. (Of course, a multi-page design can also have significant speed improvements with carefully-constructed cache-control headers). One benefit of the SPA paradigm is that you can load multiple pages during initial app load, and show them when necessary. Thus, you can trade off some delay in the initial load for a snappier user experience on subsequent page changes – saving yourself a trip to the server, even if it is an “AJAX trip”. This is a trade-off that I usually like to make in SPAs.

    If this is the case and we wish to load the content via AJAX, how can we be sure that once we have dragged the content in, each of the images on the page have loaded.
    If the images are small enough, an alternative is to use base-64 encoded images, this’ll guarantee that all content is ready to be displayed at the same time.

    You could attach the content to the dom in a container, but hide it. Show the container after all of the images’ ‘load’ events have fired. If you use jQuery, a plugin that helps with this is https://github.com/alexanderdickson/waitForImages. If you are using pure JS, you’d probably have to roll your own solution, which would involve:

    1. iterate over all the images in the container,
    2. storing a count of the number of images (numImages) and initializing a counter (numLoaded) that tallies the number of loaded images, and
    3. binding to each image’s ‘load’ event, such that when it fires, the numLoaded counter is incremented, while
    4. checking whether numLoaded == numImages. If true, all images have loaded and the container can be displayed.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When working on my latest web application and needing to use the Array.forEach function,
I'm working on the Web GUI of an appliance-like product. I have an HTML
I have a working prototype of a Java application that is using Apache Commons
I'm in the preliminary stages of designing a new web application, and have yet
I am building a utility page for a web app that I am working
I am working on a web application that is designed to display a bunch
I'm working on a mobile web app that needs to work in IE Mobile.
I'm currently working on a web application that's sort of similar to Google Reader
Hi! I have a working prototype of a game engine and right now I'm
I have a simple code fragment in JS working with prototype inheritance. function object(o)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.