scrollpath icon indicating copy to clipboard operation
scrollpath copied to clipboard

Application gets really slow with a lot of lines

Open martinbroos opened this issue 12 years ago • 1 comments

Hi, I'm using your plugin to create a presentation website. It worked great but now i have 35 line drawings it gets really slow on initiating the website.

When its loaded it's fast but it hangs on the javascript to draw the lines when visiting the url. Google Chrome even crashes.

Any help on solving this issue is appreciated.

Maybe something to load the lines asynchronous? I think the canvas api should be able to load 35 lines...

martinbroos avatar Jun 20 '12 12:06 martinbroos

It solved itself when i setted the drawing of the path to false.

$(".wrapper").scrollPath({drawPath: false, wrapAround: true});

Still it is kinda hard to create a big slide website when a lot of browsers can't handle the canvas requests. On 100 lines it will not play anywhere. So you can't debug.

martinbroos avatar Jun 21 '12 11:06 martinbroos