Menu icon Foundation
Calling $(document).foundation take more time each call

I'm creating Accordion component dynamically which has also reveal and tooltips. In order the component to work, I have to call $(document).foundation() on ComponentDidMount() event.

Each time the component remount the call take twice time than the previous call. it start at ~500 Millis and can reach to 10 seconds, which is not reasonable time for the user to wait.

Any advice?

foundation-sitesaccordionrevealtooltip

I'm creating Accordion component dynamically which has also reveal and tooltips. In order the component to work, I have to call $(document).foundation() on ComponentDidMount() event.

Each time the component remount the call take twice time than the previous call. it start at ~500 Millis and can reach to 10 seconds, which is not reasonable time for the user to wait.

Any advice?

wasi over 1 year ago

Each time the component remount the call take twice time than the previous call.  restaurants near me open now it start at ~500 Millis and can reach to 10 seconds, which is not reasonable time for the user to wait.