I'm experiencing problem with too much recursion when I'm sending event to MixPanel analytic. This is what I have:
onClick='_gaq.push([\"_setAccount\", \"UA-1111111-1\"]); _gaq.push([\"_trackEvent\", \"School\", \"Add School\"]);'
My onClick is in dynamically created <\li>. Thanks
Soulution:
Hi friends, this was one of those lame bugs. I had a JS file where I had MixPanel setup, after some time I've changed position of that setup to other file and I commented out old setup. For some reason that code was the problem, after I deleted it totally from file the problem was gone. If somebody know how to explain this it would be helpful? I hope that this will help somebody in a future.
Related
I am trying to setup GA4 pageviews by configurating on Google Tag Manager. I've done this multiple times for multiple websites and I've never come across this problem before. I am not a technical expert, but I do have some technical knowledge. I just don't understand what exactly is going wrong..
So, the problem...
Basically I have a clean, fresh made container and the GTM codes are properly implemented according to Google Guidelines. The head code is placed at the start of the head opening tag and the body code is placed directly after the body opening tag.
For some reason my container just isn't loading. These are all datalayers that are being pushed:
My pageview requires event = gtm.js which is being pushed on "Container loaded"..
So the first problem is that the "container loaded" does not appear. I have no idea why, but what I found out is when I try to look in dev. console on the GTM debug page, i get a 403 error:
Note, this dev console error does not show in the regular non-test version, only in debug mode. On the website all JS files are status 200.
I am stuck with this one and I just can't seem to figure it out. If someone can give any leads or advise on how to proceed it will be greatly appreciated. Feel free to ask additional information. Thanks in advance!
I think it says it in the title pretty well.
I do not know where to go to resolve this. I have tried looking at the CMS for algolia, I have tried looking at the autocomplete.js file, I have tried looking at many files but I am still with no answer.
Can anyone help? Thanks in advance!
Ok so if anyone runs into a similar problem it is listed in the alogolia help guide, I simply overlooked a step and didn't see how to resolve it. It is here if anyone needs it
https://www.algolia.com/doc/tutorials/search-ui/autocomplete/auto-complete/#initialize-the-client
Recently i came across the PerformanceObserver,
(https://developers.google.com/web/updates/2016/06/performance-observer
https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver)
It provide option for tracking longtask, I added in my code and got some longtask, result looks like this
There is no information about where it happening and what triggers it. Please help me to understand what is long task and how to fix it.
Thanks
I'm developing a site on Silex + Twig. Most of the time, everything looks great, but once in a while, without any JS errors, chrome will crash the page just after loading the content.
It only happens on some computers, what made me think that it might be a memory problem.
Unfortunately, I cannot provide any code, mostly because I would have to provide the whole source code, since I cannot pinpoint the problem.
Have any of you ever had problems like this? If so, how did you solve it? Where should I look first? Please, if you can, send me some light on this matter.
EDIT: On the beginning of the project, this started happening A LOT, like 3 out of 4 refreshes, so we switched from Symfony to Silex... In my machine, it solved the problem, but in some others, it still happens, in minor frequency.
I got it...
It was a problem with the flexslider plugin.
In this question there's the explanation and solution:
Bootstrap + Flexslider: Loading Flexslider within hidden element causes jQuery to be unresponsive
Thanks anyway... :D
i've been plagued by a problem that seem to started since Youtube's last
layout change this year.
I have for months put up and tried to ignore the freezing that happens
everytime I open a link within youtube such as an channel, an video, the homepage, etc.
I'm using Chrome version 31.0.1650.63 and I have already tested youtube without any
extensions, cookies, cache, etc but it still affects me to this day and maybe some
of you out there.
I searched every where for the solution and couldn't find any anywhere.
I did a bit of digging and testing to see what is the root of the problem and
while i'm no expertise on code or Java...I did found something.
Every time I reload a page on youtube, with it finishing loading up...this happens:
http://i.imgur.com/K9Z3vJ1.png
See that?
The purple-colored rendering, that's the cause of the lag every time I load
up something on youtube!
I notice that it repeats the same thing over and over again for like 5-15 or so
seconds before it starts loading up the thumbnails of the videos.
If you want a closer inspection of the code, here's the raw data from the timeline (that you can load up in chrome's dev timeline window):
Youtube Lag JSON Timeline file
I don't what to do with this problem and I believe it affects
me in Firefox as well but to an lesser extent then chrome.
Do any of you guys know how to resolve this problem?
Honestly I doubt that the youtube devs will fix this problem since they're the ones who caused it in the first place. (Like not being able to subscribe to some people when i'm not even at my sub limit.)
I'm sorry if you don't want to help but I don't know who else to look to besides
the experts that y'all are when it comes to web coding. If anything, I believe a userscript or something similar could help with this but how...I don't know.
I'm new to this and I apologize if the question i'm asking isn't suited for this site.
Still, thanks for reading and if you can...please reply.
That is all and thanks again.
Well I was fiddling around and looking at the source code
with chromes timeline devtools and well...
I found a temporary solution to the problem which seems to have
fixed and ended the freezing on youtube! yay~
But some things don't work with this solution and i'm at
a fault with this issue after some hours trying to figure out
how to stop the problem.
Anyways I used adblock, an extension that I have on Google Chrome, to deal
with this issue and was able to get everything fixed and working!
What I did was, in the custom filters section (check options in your
adblock extension, you should have it.) and added the following then did
some testing to see if it fixed the problem which it did!
Here are the filters I used to fix it!
||s.ytimg.com/yts/jsbin/www-pageframe-*
*www-pageframe-*.js
^^^
Yeah, that's the temporary solution as it fixes the problems but it causes the following...
You can't open the menu which contains links to your playlists, user settings, channel, etc when you click your username or profile
picture on top right of youtube.
The "..." mini-menu that you usually find on the right of a video section (to hide, subscribe, etc.) doesn't appear anymore.
Youtube's quick menu button doesn't work, however the menu is still open but you won't be able to close it. That or it's close and you
won't be able to open it...I guess.
Those are the problems I found with this temporarily solution to the freezing problem.
Yeah...but I hope this helps anyone who's having this problem somewhat well.
But it would be nice if someone has an better solution then mine hehe!
Thanks for reading and if you have a better solution, don't feel afraid to
tell! ^_^
I'll be awaiting other answers, for now...I hope this helps y'all well
in some ways hehe! =D
This certainly isn't javascript, but substituting the normal EasyList in ABP for EasyList without element hiding will fix the issue. There are downsides to this as well but for now seems to be the better solution.