Git Product home page Git Product logo

Comments (4)

hansemannn avatar hansemannn commented on May 25, 2024 1

I would actually not want this to happen on iOS (and actually also not on Android) as it adds additional memory overhead and computing resources for a functionality that nearly no one uses (fetching remote html when setting an url). The evalJS API has been made exactly for that use case, so if developers need to access the current rendered HTML, thats the way to go. Thats also how it's handled natively.

But: If this is an issue that affects many developers and causes a lot of struggle, we can expose it. I just don't see that urge right now, but am open for dicussions.

from titanium-sdk.

m1ga avatar m1ga commented on May 25, 2024 1

at the moment it was only one community request so far. So we'll keep it as an open issue for now. I've added the example to the docs: #13932 so people can use that for now

from titanium-sdk.

hansemannn avatar hansemannn commented on May 25, 2024

iOS does not download the HTML for remote URLs. This was discussed a few times in the past, but always decided to not be done internally, as the HTML can change at any time, so the developer should decide when to fetch it.

from titanium-sdk.

m1ga avatar m1ga commented on May 25, 2024

The Android version fetches it on the fly for you too. As shown above it just runs document.documentElement.outerHTML inside the webview.
So for parity it would be nice if it would do the same on iOS instead of returning NULL and you have to run evalJS with the same code. It would just be very convenient if the getter runs it for you (if it is null).

from titanium-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.