Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
113 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
66 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
95 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
691 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
407 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
3 votes
0 answers
329 views

CSS animation of ravens flying in a circle

I just made a little experiment on codepen with this animation. But I get some performance issues: sometimes it's not as smooth as it should be. Does someone know some practice I could use to ...
GordonFreeman's user avatar
5 votes
2 answers
302 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
129 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
419 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
95 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
954 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
6 votes
2 answers
1k views

Simple grid system made out of CSS columns

I have been researching and experimenting with HTML5 and CSS3. I was aiming to create a very simple but efficient tiled gallery / grids. So some sort of grid system that I can layout anything inside. ...
Leo's user avatar
  • 789

15 30 50 per page