How can I determine which JavaScript file makes my website slow? [closed] - javascript

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
My website is http://hoopweb.com/. It suddenly loads so slowly. I know that it is because of a JavaScript file. Can someone help find the file? I can't experiment on all files due to some reasons.

You can open the developer tools and check in the network tab exactly which script is taking the longest time to load.
And as mayersdesign said, too many scripts = too many requests = longer page load time.

http://v2.zopim.com/bin/v/widget_v2.195.js is particularly slow, but in general you simply have too many scripts and too many loading in the head and not the footer.

Related

broadcasting', {cmd: 'send'}); [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 days ago.
Improve this question
I use translation to talk to you because I got tired of searching a lot in Arabic explanations and did not find a solution. I have a chat site programmed with "node.js" with a mysql database and there is a security vulnerability that some users do (check element > control panel) that puts this code "socket.emit('broadcasting', {cmd: 'send'});" is restarting the entire site. I want a solution to this problem. Is there a way to prevent users from placing this code in (check element > console)or any other solution? Thank you.
I tried obfuscating the code but it didn't work

JavaScript response.body.getReader() is slow [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 days ago.
Improve this question
I have run into a fairly large issue with a web project I am working on. I am requesting a moderate-sized file from my CDN (2-10MB, depending on specific file), and it is getting downloaded at perfectly fine speed (~5MBps). The issues however arise when the ReadableStream reader starts reading the response. I originally implemented this as a solution incase the network was slow, so that reading the response would not have to wait for it to completely download. However the reader itself reads too slow (the audio files are played back faster than the reader reads them), is there any way to force the reader to go faster (in the case that the network is fast enough)?
If my post is missing crucial information or if you know a way to fix this, please let me know.

java minecraft error unrecognized VM option UseConcMarkSweepGC [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
So i was trying to make my own Free Server so i watched a tutorial how to do that with Hamachi
so i tried then came this Error
i already tried to find where i can fix it or sth like that but i dont know yet.
Here is the link to the Tutorial i tried with .
https://www.youtube.com/watch?v=9RpA14YdEe0&t=154s
I´d be very happy if you can help me .
The CMS collector has been deprecated as of JDK9; you're on JDK16, and it's been entirely removed at this point. It is rather unlikely you want the CMS collector. That tutorial is rather hopelessly out of date if it is advising that you use it.
I suggest you use the Z Garbage Collector instead. It has similar properties (lots of very short collection cycles that don't freeze the entire VM), but is better. -XX:+UseZGC is how to turn it on.
It's that or downgrade to e.g. JDK8 which still has the old CMS.

not able to run modified js code in chrome dev tool [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I am not able to run the modified code, after modification still chrome is debugging older code. I can see the green color on the web page which denotes that its pointing to the local file saved in my system. But still not able to run the modified code. I am able to do so by using console to modify the js files.
I am really stuck for 3 days and now i am pretty confused whats going on. I searched on google but it seems not working.
Try the below steps-
• Clear the browser cache.
• In case you are using Visual Studio, clean and the rebuild the solution. Or do the equivalent if you are using any other IDE.

PHP Get URL Of Current Page, Not Script [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I realise this might look like a duplicate but I don't think it is. I've looked everywhere.
What I'm attempting to do is get the URL of the page the user is currently on, but I'm attempting to do this in a separately loaded page.
$('#siteStatus').load('/_backend/account/accountStatus.php');
I want to load a script into this div that works out the current page of the url.
At the moment I am doing $url = "{$_SERVER['REQUEST_URI']}"; but this just returns /_backend/account/ and I'm unsure why.
Any help is appreciated.
Thanks to #prasad using print_r($_SERVER); showed an array of what I could use and it turns out $_SERVER['HTTP_REFERER'] was what I needed.
Thanks.

Categories

Resources