Git Product home page Git Product logo

rapidwebview's Introduction

RapidWebView SDK

An Android library which utilises local caching to offer near native experience over WebView.


If you like our work you can show support by staring โญ this repository ๐Ÿ‘


Getting started and documentation on our website: Link


Description

RapidWebView is a library for your Android application which allows you to load websites in a webview with a minimal TTI (Time To Interactive). It also provides a generic set of Javascript Interface functions which can let your website interact with some Android native functionalities.

Features

  • Asset cache - keeps a local copy of website assets provided by you during initialisation. Supports asset versioning as well.
  • WebView request interceptor - intercepts requests made by webview and serves assets from local copy reducing the website "Time to interactive" time.
  • Javascript interface - a generic collection of javascript interface functions which can be used to interactive with native application

Performance

We enabled webview content debugging (setWebContentsDebuggingEnabled(true)) and used Lighthouse from Chrome DevTools to measure performance of the pages loaded with and without RapidWebView SDK. The results can be seen below. A 67.2% improvement in TTI!
metrics

Technologies used

  • Kotlin
  • Retrofit
  • Android Architecture Components

Getting started

Follow the guide here


Changelog

CHANGELOG.md

Contribution

We're looking to improve this project, open source contribution is encouraged. WorkIndia team will be reviewing the pull requests.
Pull requests

rapidwebview's People

Contributors

aalaprawat avatar dependabot[bot] avatar nogoodusername avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rapidwebview's Issues

Add a max retry parameter to AssetDownloader

Currently AssetDownloader keeps retrying asset download in background if the individual download gives an error (non-200 response).

There needs to be a max retry parameter passed to AssetDownloader to avoid infinite retry loop

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.