Star Wars Roleplay: Chaos

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Coding of Website

This has been happening over the last hour: whenever I open a page, it will not completely load everything. People's avatars won't load, but I don't see what the exact problem is, because some avatars load, and some don't. It's also erratic; it loads once when I open, but it might not load if I reload the page to see if it does it again. When I go to look at the person's profile, same problem.

If I open a new tab, it will not load at all until I look at it. Normally it will load everything, but right now, I could have it up for ten minutes, and it won't load.

I am running Firefox, Version 47.0. I have Adblock Plus, if that helps with knowing anything about what's going on. As far as I am aware, I don't have any other Add Ons, because I had to reset this computer and reinstall Firefox. When I look at the coding of the website to see what's up, I'm getting errors with the loading of the Java Script. I have the following error, the page where it's getting the error, and the line it's on.

unreachable code after return statement
Code:
http://starwarsrp.net/public/js/ips.post.js

88:22
unreachable code after return statement
Code:
http://starwarsrp.net/public/js/ips.testEditor.bbcode.js

446:2
unreachable code after return statement
Code:
http://starwarsrp.net/public/ipc_blocks/compiled.js

32:98
Use of getPreventDefault() is deprecated. Use defaultPrevented instead.
Code:
https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js

2:40351

While I know the first number is the line it's on, I'm not familiar enough with Java to know what the second number is referring to.

Now, when I leave a page, specifically just one, it will finish loading after about five to ten minutes. The moment there is more than one, like maybe three or four pages, it exponentially goes up in the time it takes. I'm cropping that up to being the page is trying to run the same script that it's also having trouble with in another page, slowing the process.

I hope all of this will help to whoever might know what's going on.
 
None of the links went anywhere when I clicked on them. The last one brought up a Google page with a 404 error.

As far as the issue you are running into I'm not entirely sure, I run the latest version of Opera web browser with Ad-Blocker Plus as well as another utility to block ads along with the feature in Opera turned on, so that is not likely to be the cause of the issue. Now you mention there being issues when you have 3 or 4 pages of SWRP open. Is that in addition to anything else? I ask because each tab takes up a decent chunk of memory in RAM on your computer, sometimes upwards of 1-200 MB of RAM for a single tab, depending on what it is. So without realizing it you could easily slow down your computer as a whole with just a few tabs open and even a single other program running depending on the amount of RAM being utilized.

That is on top of the processor(how fast the clock speed is, the number of cores, how hot it is running, etc) both of these impact computer performance in a rather large way, the RAM and processor issues are further exacerbated if you use a laptop most times. This is due to the fact that most processors have what is usually called 'integrated graphics.' In a desktop, this is overridden most times by the use of a dedicated graphics card. Put simply, when you open a tab for Youtube or a game the computer dedicates system RAM to fill in as VRAM for the needs of the application. This is limited simply by the size of the Graphics card that is advertised as being part of your system. A 1 GB integrated graphics card can use up to 1GB of system RAM for video processing tasks as needed. This adds stress to the system and can quickly cause overheating issues which can lead to a plethora of other odd behavior from the machine.

TL;DR version- There are a lot of factors that play into something as seemingly simple as loading code. While it is possible that there is a conflict when you have multiple tabs open it is less likely than having only a small amount of RAM available. My desktop has 8 GB of RAM, but once you figure in what is set aside for the operating system to run, as well as other programs and that each tab has an allocated space in RAM, you run out fast. If your computer runs hot/starts to run hot, it may cause other issues to crop up as well in addition to any that were already present.
 
As an additional note, I'm also running Firefox 47.0 with AdBlock Plus as well as HTTPSEverywhere and Flashstopper. I tend to see problems on other websites, but have no issues here other than certain hotlinked images not showing until I allow it. It's doubtful that Firefox or ABP are the issue unless you have some custom filters set up that are blocking things.
 
[member="Audren Sykes"]

I highly doubted it was either one too, but I needed to ask on principle, just in case. Never know when other issues come up when they do updates >.>

[member="Kurayami Bloodborn"]

You are correct, and unfortunately my computer is one of those with intergrated graphics. Sucks like no tomorrow -.- Asus Labtop, 4 GB RAM, but I can run Borderlands 2 at mid graphics with only minimal glitching, so the whole thing kinda buggled my mind. However, when I tried everything, it was over at a friend's house on their wifi, and once I got back home and used mine, I'm no longer getting any of the errors it said I was getting. Everything is working perfectly.

When at my friend's house, I shut down the computer, let it sit for about 5 minutes, and then booted it back up. 5 minutes is excessive, but I wanted to make sure it was from a complete cold start. Only thing I had open was Firefox and three tabs; still had the same issue. Then when I use my internet, nothing. Back to normal, and I cannot find any of those errors again.

As for the pages, my apologizes, the site turned them into links when I didn't want them to be, but I'll fix that in a moment. I used the Debugging element in Firefox to look at them, and opens it up like it would in Notepad++. The issue was the additional numbers at the end, which I placed to indicate which line in the code was causing the error.

At this point, it works fine, but I'll be on the look out for it again if it shows up when I head back over there some time next week.

Thank you both for helping me! ^-^
 

Users who are viewing this thread

Top Bottom