workindia / RapidWebView

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

Home Page:https://rapid-web-view.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://rapid-web-view.netlify.app/

License:MIT License


Languages

Language:Kotlin 100.0%