Can you export your library settings and send me the resulting CSV file so I can load them up in my test installation and take a look?
Are you saying that everything worked fine until you added two extra links? If that is the case, it will be more difficult for me to reproduce.
Can you provide an export of all your links as well?
Finally, if I can see the page, I might be able to see the problem just using developer tools in the browser.
I also noticed that when I add a shortcode [link-library settings=”2″] to a different page, it is still showing link library #1 links. The category selection, however, is displaying correctly.
How many links do you have in that West Virginia category (tens, hundreds)? I look at the page and did see the lockup, but there are no javascript errors being thrown.
Yannick,
There are probably about 20 links in that category at this time.
Sorry for lack of response. I was travelling for work all of last week. I was expecting you to tell me that you had a much larger number of links than 20. I am not sure why displaying this short list of items is making the browser freeze.
I have simplified the code that takes care of expanding the list of links. Can you try this updated code before I make it public?
https://gist.github.com/ylefebvre/80e6516e23ee685febc0d7d10624e042
You need to replace the contents of the render-link-library-sc.php file with this code. Then try it out and let me know if it fixes the problem. Please consider donating to support this plugin’s development.
Hi Yannick,
Sorry for the late reply, and no problem!
Thanks so much for the simplified code. Unfortunately, the lock up is still happening. However, I am able to exit out of the tab, which I was not able to do before (:
The first time that I loaded the page, it allowed me to open two categories without a lockup. When I expanded the third category, the tab froze. When I tried to open the page after the first viewing, opening any category locks up the tab.
Could it be having so many links on one page?
Thanks for the excellent support!
Kaila
Looking at the first answer on this page: http://stackoverflow.com/questions/6497178/jquery-slidetoggle-poor-performance-and-or-freezes-ie8
It seems like what might improve things is to remove margins and padding on items. Can you try that on your site and see if this helps?
Since the slide animation does not seem great in terms of performance, perhaps I can add an alternative mode that just makes the sub-list appear at once instead of sliding down. Would that work for you?
Yannick,
I would be completely fine with that, or an option to display the categories on their own page. Whichever would be easiest!
Also, I removed the margin and padding from the items and it didn’t seem to affect the issue.
Well, displaying categories on their own page is something that can be done by using the Permalinks option of Link Library, in conjunction with the [link-library-cats] shortcode on the top page, to display the links to all sub-pages.
You can read more about how to use this feature here: http://ylefebvre.ca/wppluginsdoc/index.php/Using_Permalinks
Would that work for your site?