Giter VIP home page Giter VIP logo

sift-2.0's Introduction

sift-2.0

This repo is a rebuild of https://github.com/bpswim90/sift, with some changes to play around with performance optimization and to make it a PWA (Progressive Web App).

What's different?

The major difference is this version is bundled with Webpack (via the Vue-cli), rather than Browserify. This allowed me to implement lazy-loading of routes in the app, and take advantage of some of the magical optimizing that webpack does.

One other really cool thing is that this version can be run as a PWA! This is again thanks to the magic of Vue-cli and webpack.

Is it better?

Performance improvements so far have been negligible; the app's loading clocks slightly faster, though not noticeably so. On an emulated 3G phone speed, both versions seem to load in around 6s.

Future Improvements

One major limitation is the large size of bootstrap and jquery, which are used in the project. I suspect there would be performance gains from only loading the most necessary styles, and deferring the loading of the rest of bootstrap.

Caching may also help, though I haven't gotten into that yet.

The user experience when the app is run as a PWA has some bugs and hiccups; for example, the lack of a back button. Also, sometimes a page will take a long time to load for reasons I don't yet understand.

How to Run as a PWA

iOS:

  • Navigate to https://bpswim90.github.io/sift-2.0/ in your iPhone
  • In Safari, click the share button and scroll over to "Add to Home Screen"
  • Give the app a name if needed and click Add.
  • You're done! You should now have an icon on your homescreen that you can use to launch Sift.

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

sift-2.0's People

Contributors

bpswim90 avatar

Watchers

James Cloos avatar

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.