• Hi,
    I just started using this plugin yesterday, and it was working great! I added two more links, and now when I click the category header to expand the links, the page locks up.

    I checked the two links I added to make sure that I didn’t mess something up, and everything looks normal. I also checked my error logs, and nothing is present.

    Do you have any suggestions on what to check? Is there a setting that I can change to avoid this until I figure out what is causing the lock up?

    Thanks for your help!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    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.

    Thread Starter panhandlegenealogy

    (@panhandlegenealogy)

    Thanks so much for your quick reply!

    This is the page:
    http://panhandlegenealogy.com/resources/digital-library/west-virginia/

    Edit: Here are those files.
    https://www.dropbox.com/s/iv7fh8e75von4ti/SettingSet1Export.csv?dl=0
    https://www.dropbox.com/s/txlbpkyhrodwnuz/LinksExport.csv?dl=0

    Thread Starter panhandlegenealogy

    (@panhandlegenealogy)

    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.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    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.

    Thread Starter panhandlegenealogy

    (@panhandlegenealogy)

    Yannick,
    There are probably about 20 links in that category at this time.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    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.

    Thread Starter panhandlegenealogy

    (@panhandlegenealogy)

    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

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    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?

    Thread Starter panhandlegenealogy

    (@panhandlegenealogy)

    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.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    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?

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Locking Up Page’ is closed to new replies.