-
Notifications
You must be signed in to change notification settings - Fork 89
Why using jquery #3
Copy link
Copy link
Open
Description
Hi, your script work great but i just realised that you used jQuery who is 93k for 4 lines of jquery code,
It would be easy to write these lines in pure javascript and get rid of jQuery.
oh and to make it more dynamic i changed the * 4 for: (ok in jQuery code)
page_count = $("#pageWrapper .page").length;
$('#pageScroller').css('width', wrapperWidth * page_count); // GC
Regard
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels