Skip to main content

All Questions

0 votes
1 answer
101 views

Create and store the level data for a remake of Super Mario Bros game

I am trying to remake Super Mario Bros. in JavaScript and I am trying to figure out if there is a more efficient/shorter way to create and store the level data. I have created 1-1 and here's what the ...
Jake Miahn's user avatar
2 votes
0 answers
62 views

JS icons animation

I've written a simple JS that takes care to animate an icon. At first I wrote it quickly and without paying attention to any kind of optimization: ...
TheRed27's user avatar
2 votes
2 answers
77 views

Loading the stylesheets and scripts on my website

I have made a simple website and I have tried to reduce load times as much as possible. All the content that is loaded is necessary. Is there anything thing I can do to my code, such as structurally, ...
Daemon Beast's user avatar
-2 votes
1 answer
645 views

Updating text with JavaScript and Firebase [closed]

My problem is this causes more lag as time goes on. I use this commonly to chat with my friends, and I need it the site to update in real-time whenever a message gets edited/deleted/added. Any ...
MilkyWay90's user avatar
0 votes
1 answer
398 views

Read Local File

I'm trying to read any file locally and write out the binary as string, it loads and reads small files very fast. How can I modifier it to read large files greater than 1gb without crashing the ...
king amada's user avatar
5 votes
2 answers
289 views

Game of life - JavaScript

I would like to kindly ask others to review my code. I'd like suggestions, criticisms, and discussions on what is good and what could be done better. ...
korczas's user avatar
  • 135
2 votes
1 answer
114 views

Placing many pins on a Google Map

It's taking almost 2 minutes to load all the pins on this Google Maps API. Every time the page is loaded it sends a request for each location one by one. Can it do this all at the same time or preload ...
Juls's user avatar
  • 21
2 votes
2 answers
2k views

Show and Hide group of classes based on data attributes

Somebody please verify this code. Is this efficient? please tell me modular way to accomplish this task. Updated I want to add show class to ...
Asfath Ahamed's user avatar
2 votes
1 answer
413 views

JavaScript game tick

How can I achieve a more performant tick code keeping my minimum frame rate high? ...
quantumpotato's user avatar
4 votes
2 answers
1k views

HTML5 Canvas game starts to lag 10 seconds after loading page

I got bored and started making a game using HTML5, CSS3, and JavaScript/jQuery. I've been working on it for about 2 weeks and it was running pretty well. Today I opened it and was moving the player'...
Qwurticus's user avatar
  • 433
2 votes
0 answers
90 views

HTML5 canvas drawing from video source

I have the following code, which draws a overlay image onto video for each frame: ...
Kristian Vitozev's user avatar
4 votes
4 answers
943 views

Maths Q&A game in JavaScript

This used to be university work now I put it our here for review purposes. Could this be constructed better? Is there any easier path, performance-wise? Could this be optimised? Which features ...
Darik's user avatar
  • 61
2 votes
1 answer
1k views

Can the performance of this canvas drawImage() test be improved?

I have a quite simple loop that draws an 8px by 8px image many times in a canvas in a tiling fashion. Currently it's drawing 7500 images each loop. See the jsfiddle. ...
Tony R's user avatar
  • 123
7 votes
2 answers
2k views

Optimizing the performance of html5 video manipulation

I've been working on an html5 canvas video player with a lot of fun little extras and ui toys, the main one being a chroma key (green screen) effect that allows the user to key out different colors or ...
apaul's user avatar
  • 207
2 votes
2 answers
9k views

Menu traversing on next and prev button click up and down

Can anyone optimize this code? I am new to jQuery. I want add class on next and previous button click. I wrote this code that works for me, but could anyone optimize it using jQuery predefined ...
sarath's user avatar
  • 123

15 30 50 per page