Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
You disabled the plugins and then you faced an error message?
Thread Starter
dnjen
(@dnjen)
Hi Andrew,
No, the error is persistent with or without them. I only see the error in the development console log, which I would ignore but it’s eating memory. The error is not present when another theme is active.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Let’s see a page with the issue
Thread Starter
dnjen
(@dnjen)
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Are you sure that’s the right page? First clear your error log and refresh, do you still get that error?
Thread Starter
dnjen
(@dnjen)
Oh, pardon me! I disabled the theme to test and forgot about it. Please try it now.
The error is not present without the theme. I just cleared my browser data and restarted my browser and it’s still there.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Can you add an image into the slider for now to resolve this?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
@theme authors, You should check if elements exist before you target them with plugins 😉
Thread Starter
dnjen
(@dnjen)
I’m not even aware of a way to set up a slider through this theme, so I just removed the function. The page still isn’t able to finish loading according to Chrome, but at least the error isn’t there.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Yeah, not good, there’s setTimeouts all over the place :s
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Until the author has enough time to improve the JS of this theme, or someone else can (big ask), you might want to try a better one 😉
Thread Starter
dnjen
(@dnjen)
How do you view setTimeouts? I don’t see that in Chrome developer tools or Firefox’s FireBug.
I installed it here while testing the issue: http://hitorclickmarketing.com/waypoint/
Do you see the same errors? For some reason it seems to work after removing the function. I just wanted this theme to be a quick fix :p
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Don’t do it, it’s already done in the theme and that’s the thing that’s causing the infinite loops. It’s how not to do things. I did see the same errors that you pointed out.
Do you see the same errors? For some reason it seems to work after removing the function.
You removed the code that was causing the issue for that example. So it fixed it.