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 8562569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:45:28+00:00 2026-06-11T16:45:28+00:00

I placed multiple UIWebView s side by side into a UIScrollView . Every UIWebView

  • 0

I placed multiple UIWebViews side by side into a UIScrollView. Every UIWebView includes a “web browser” view that displays a local HTML file. Unfortunately I have no idea how to load the webviews in the background and at the same time to prevent or stop the JavaScript functions from executing that are included into the HTML files. I mean by “in the background” as I watch the first few panels and in the meantime the remainder panels just lazy load silently. I saw different applications (like pugpig) do this – it lazy loads the HTML pages and stops the JavaScript animations – it can somehow stop the JavaScript to animate the whole fade effect that I use frequently in my HTML pages between tab switches and at the moment I load the panel it continues the fade animation.

So, the question is:

How can I pause a JavaScript animation and prevent memory issues using Objective-C code and how can I continue the fade animation once I display the panel?

  • 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-06-11T16:45:29+00:00Added an answer on June 11, 2026 at 4:45 pm

    Have you tried injecting JavaScript (i.e. – (NSString*) stringByEvaluatingJavaScriptFromString: (NSString *)script) that observes onblur and onfocus of the window, or pageshow and pagehide? This post proposes a couple of solutions for that.

    So, you could try something like

    $(window).blur(function(){
      // when the web view loses focus
    });
    $(window).focus(function(){
      // when the web view gains focus
    });
    

    If that fails, you could try pagehide and pageshow events:

    function pageShown(evt)
    {
        if (evt.persisted)
            // The page was just restored from the Page Cache
        else
            // The initial load. This is the same as the page load event
    }
    
    function pageHidden(evt)
    {
        if (evt.persisted)
            // The page was suspended and placed into the Page Cache
        else
            // This is the same as the page unload event
    }
    
    window.addEventListener("pageshow", pageShown, false);
    window.addEventListener("pagehide", pageHidden, false);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have multiple datasets that I would like to combine into one. There is
I have a single image that needs to be placed on multiple UIImageView. I
I have multiple custom UIWebView's as subviews within a UIScrollView. I have implemented the
There are multiple MovieClips that will be dynamically placed on stage. These MovieClips are
I am displaying multiple QLabels on a QFrame , placed into a QScrollArea .
I have a php application that serves multiple customers. Code is placed in the
I am creating multiple CodeIgniter views that could possibly be placed in any order
I have an Apps Script that creates multiple files and moves them into a
I am running into an issue with a FileSystemWatcher when multiple files are placed
I've got a page displaying multiple banners on large-format displays. The banners are placed

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.