Giter Site home page Giter Site logo

Comments (5)

felixjet avatar felixjet commented on July 18, 2024

Maybe you should implement another way to do this, for example, view only the checkboxes from the current view and lets say, 20 rows before and after. For example, if you are viewing rows 120-140 (what fills on screen), let icheck use his magic only in the checkboxes from 100 to 160. The others, just remove() them. Put a on scroll event on the page and invoke new iChecks() as needed.

Or..... paginator!

from icheck.

drgullin avatar drgullin commented on July 18, 2024

2.x version got a huge performance boost, check it out - https://github.com/fronteed/iCheck/tree/2.x-beta

It's memory-safe, binds only a few events and has a quite small number of function calls.
It also cares about reflows/repaints and uses mostly a native functions instead of jQuery's slower alternatives.

I've made some calculations, customization of 1000 inputs takes 0.5s - 1s time.

from icheck.

genechuah avatar genechuah commented on July 18, 2024

We implemented 1.x but now we have 2000+ records that each have an iCheck checkbox. Doing $('.checkbox').iCheck('check') takes forever, possibly up to a full minute. Is v2.x fully backwards-compatible? Is there a way to speed up this operation? Thank you.

from icheck.

iamsolarplexus avatar iamsolarplexus commented on July 18, 2024

I ran into this as well but wasn't able to get 2.0 working. So no, I don't believe it's fully backwards-compatible. I'm listening to this script's development feed in the hopes that eventually development will pick up again or there will be a demo of 2.0 somewhere. Haven't had the time to look into it myself.

from icheck.

mubbashar avatar mubbashar commented on July 18, 2024

is 2.0 working? i tried to test it but was not able to get it working

from icheck.

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.