Giter Site home page Giter Site logo

1nolysk / jquery-for-large-data Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 5 KB

Faster Webpage loading large Dataset made easier by JQuery

PHP 40.96% CSS 16.57% HTML 42.47%
live-data-fetching-from-server jquery php webpage database scrolls dataset

jquery-for-large-data's Introduction

JQuery-for-Large-Data

Faster Webpage loading with large Dataset made easier by JQuery

Problem-Statement

The load time of our webpage is what matters when it comes to real world users. So, When you have a large database and you need to show all (most) of the data on your webpage. Loading the webpage with all the datasets together or Fetching the whole database content to display on webpage at a time puts a high load on server and network and the loading takes time.

Though, the user will see a part of dataset in one view and then he/she scrolls down to view rest.

So Why fetch the whole data at once ? Already the screen is not able to display 50 or 100 rows at once.(Well that's also too much said)

So, how to load the datasets efficiently without compromising the load time of our webpage and it's purpose.

large dataset means 500+ entries in table

Observations

Working on a localhost, i found the average time to

  1. load 10 rows at once is 60-80ms. Well that's sweet
  2. load 400+ rows at a go takes more than 1000ms. That's a huge increase in time than before and the count increases as the number of rows we try to load increases.

When localhost takes this much time think about real servers..

Solution using JQuery

With JQuery library we can fetch data from database whenever required.

We can initially load the page with few entries and then as user scrolls/finishes reading those entries we can make another quick JQuery Post Request and fetch next few entries.

  • Page loading time decreases
  • Fetch data as many required
  • Make a pleasant user Interaction

jquery-for-large-data's People

Contributors

1nolysk 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.