I am using following code to implement pagination functionality. All items are rendering on page load and li elements greater than page set are hidden with CSS.I want to make this code reusable so that any static pagination in my project can use this snippet with dynamic parameters.var countShown = $('ul li').not('.hidden').length;$('.load-more').on('click', function(){        var countHidden = $('ul li.hidden');    for(var i=0; i < countShown; i++) {        countHidden.eq(i).removeClass('hidden');    }    });JS FiddlePlease help me with suggestions to improve above written code.
Pagination with static data
javascript;performance;jquery;plugin;pagination