Comments (9)
Huh, that's a good idea, shouldn't be too hard to implement. I'll look into that when I have time.
from osgameclones.
I've been thinking about this issue, and I think it might be best to start looking into a web framework like React or Vue. We currently do our tags/filters using basic javascript; it works but is not the most maintainable. With a framework this kind of stuff can be added easily. Thoughts?
from osgameclones.
With framework like that you'll either have only client-side rendering or a need for a much more elaborate setup with server-side rendering, instead of simply serving an HTML file like it works right now.
Maybe it's better to look instead at some frameworks which on one hand make code a little bit more structured, but on the other do not require client side rendering?
Maybe stimulus? It's what RoR uses IIRC.
from osgameclones.
I'm against server-side rendering logic because we'll need a webserver; plain HTML or client-side rendering are better options.
I think client-side rendering is better and will become better as the site grows.
Currently there are so many games that the page HTML takes the most time and size to load:
Most of that size is HTML tags. The raw data (YAML) is a fraction of that size.
Front end frameworks can also be big, but it's not as bad - they can be cached, and we could also pick a lightweight one like vue or preact: https://gist.github.com/Restuta/cda69e50a853aa64912d
from osgameclones.
The thing is that client-side rendering will be never as fast as static HTML. 123 kb of html is a little! I wonder why it loads for 2 seconds, maybe it's a problem with web server? I'll look into it.
Disclosure: I'm working on JS apps since 2011, and for the last few years I'm at https://kasta.ua - you can check it out, it's pretty fast, but I'll be damned if OSGC isn't a magnitude faster! :)
from osgameclones.
I'd also like to sort by number of ⭐️ but that would require some db backend to effectively cache the numbers.
from osgameclones.
Client side rendering is a very bad idea because it only works with JavaScript turned on. This site shouldn't require JS to check basic things, this site is basically a static list. Only web applications should require JS. Everything else should work without JS.
from osgameclones.
@CommonLoon102 well there is no way you can sort something without JS (or adding server, but that sounds even more atrocious).
from osgameclones.
It would be possible to generate 2 HTMLs based on the YAML, one is sorted by name, the other by updated. There could be a link on both pages to switch to the other.
from osgameclones.
Related Issues (20)
- Add Just Shapes & Beats HOT 1
- Add Vib-Ribbon HOT 1
- Add Vib Ribbon Minus HOT 2
- Streets of Rage 2 HOT 1
- Remove open siege
- Add [SpelunkyPSP]
- Add TrinityCore
- Add "Robot War Engine"
- Add "Oni" HOT 1
- Add Roblox HOT 1
- Add Magic Carpet 2 HD
- Add TransLines
- Add Tube (1994) reimplementation
- update link to FITD (Free in the dark)
- Add Paratrooper HOT 2
- Add MS-Engine (Diggers, 1993)
- Add Legacy of Kain: Soul Reaver Decompile
- Add pacman-canvas-next
- Reclassify Real Time Strategy games
- Update OpenCiv1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osgameclones.