Entrance Events! Chat Gallery Search Everyone Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
June 06, 2025 - @0.72 (what is this?)
Activity rating: Three Stars Posts & Arts: 47/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts Start New Topic  Submit Art
News: :happy: Open the all windows! Your mind needs storms and air! :happy: Super News: Upload a banner!

+  MelonLand Forum
|-+  World Wild Web
| |-+  ✁ ∙ Web Crafting
| | |-+  is there a way to optimize a website without subpages?


« previous next »
Pages: [1] Print
Author Topic: is there a way to optimize a website without subpages?  (Read 684 times)
maddy ੈ✩‧₊
Casual Poster ⚓︎
*


maddycha.com

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: maddy

View Profile WWWArt

Joined 2025!
« on: April 25, 2025 @792.84 »

hi! i wasn't sure if this should be in web crafting or i need help but i figured it could be applicable to multiple projects so wanted to start here

i have been working out of one index.html file for my personal website to make it feel as seamless as possible
rather than having one html file per page, i have everything on one page and use javascript to switch scale from 0 to 1 to simulate the different windows opening.

i was worried that as i keep adding content, the speed of the site would vastly slow down. i'm self-taught so i wasn't sure how to google if this would be an issue but i was wondering if there was a solution like splitting up the html into separate files and using js to insert it into the main index.html would be a solution while keeping the same sort of interactive experience? i wasn't sure if there was a way to have multiple html files without having multiple pages available on the site. right now everything is vanilla html/css/javascript.

sorry if this is a lot or it didn't make much sense! i can also share my code if that would be helpful!
Logged


hi i'm maddy (they/them)
nice to meet u!
   
randomtangent
Sr. Member ⚓︎
****


she/her

⛺︎ My Room
XMPP: Chat!
RSS: RSS

View Profile WWWArt

Vocaloid Fan !Joined 2025!
« Reply #1 on: April 25, 2025 @862.05 »

i suppose, maybe downsize the images, or at least make them SVGs? because high-res images can slow a lot of slower/older devices down, especially if not optimised properly :P
JPGs or very optimised PNGs are really good for this!

maybe 'prune' the code a bit too, i guess? make sure it's not spaghetti code, plus no dead-ends or janky bits in it :P
Logged

i don't mean to be rude, cold, or anything else really. i'm just autistic plus i'm struggling as well, please understand! communcation isn't my strong point, but i mean no harm! /gen

maddy ੈ✩‧₊
Casual Poster ⚓︎
*


maddycha.com

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: maddy

View Profile WWWArt

Joined 2025!
« Reply #2 on: April 25, 2025 @869.39 »

i suppose, maybe downsize the images, or at least make them SVGs? because high-res images can slow a lot of slower/older devices down, especially if not optimised properly :P
JPGs or very optimised PNGs are really good for this!

maybe 'prune' the code a bit too, i guess? make sure it's not spaghetti code, plus no dead-ends or janky bits in it :P

this is helpful thank u! i have optimized my pngs, but might make them all svgs just to be safe.
i'll start too with fixing up my code, it's definitely not the most optimized right now since i kept messing with it, i gotta clean it up a bit!
Logged


hi i'm maddy (they/them)
nice to meet u!
   
Kie
Casual Poster ⚓︎
*


I won a typo chapmionship once actualyl

⛺︎ My Room
SpaceHey: Friend Me!
iMood: Awwkie

View Profile WWWArt

Joined 2025!
« Reply #3 on: May 09, 2025 @911.31 »

Oh that's such a cool idea!!  :cheesy:  It makes the website feel so much more reactive/interactive! But yes, it totally will end up being an issue if you keep adding to the site.

Just to understand since you mentioned being self-taught, but do you know about iframes?
keysklubhouse is a popular indie website that hevily uses iframes, for example. However they are not quite as customizable as what you have right now.

Maybe you can have the main "pages" as they are right now, inside the idex.html. And then create a page called something like "extras" that brings up an iframe. And users can change what the iframe displays. This way all the secondary pages will be in separate html files and only be loaded on-demand!

EDIT: Scratch that. Now that I think about it I'm pretty confident you could make this work with exclusively Javascript. You could make a function that loads HTML inside of a div! And have the function activate when someone presses the button to bring up a page!
You could also have the deafult html inside the div be something like the gif of a loading screen. This way if the script takes a bit to work it will still look good to the user!! Check this out!
« Last Edit: May 09, 2025 @925.30 by Kie » Logged

Oh shit I have to come up with a signature!! :drat:
TheFrugalGamer
Sr. Member ⚓︎
****


⛺︎ My Room
Itch.io: My Games
RSS: RSS

View Profile WWW

Great Posts PacmanFirst 1000 Members!Pocket Icelogist!Joined 2022!
« Reply #4 on: May 14, 2025 @599.61 »

If you're adding more things like your Art gallery, with large images and such, you might use an iframe or even link to an entirely new page just to keep load times down.

But otherwise I think you'll find you can add a lot more than you suspect...I've been throwing more and more onto this page for a while now, and it still loads up and works almost instantly (at least for me). Basic HTML/JS/CSS is way lighter than we're used to here on the modern web.
Logged

maddy ੈ✩‧₊
Casual Poster ⚓︎
*


maddycha.com

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: maddy

View Profile WWWArt

Joined 2025!
« Reply #5 on: May 14, 2025 @783.51 »

ooh thanks for sharing, this is super helpful!! i'll definitely try using js to clean up
and the site with iframes is really fun as a reference too!


thank u i'll keep that in mind! and oh my gosh, your page is so cool!! i absolutely love the style you're going for and all the apps you've created!
Logged


hi i'm maddy (they/them)
nice to meet u!
   
TheFrugalGamer
Sr. Member ⚓︎
****


⛺︎ My Room
Itch.io: My Games
RSS: RSS

View Profile WWW

Great Posts PacmanFirst 1000 Members!Pocket Icelogist!Joined 2022!
« Reply #6 on: May 15, 2025 @652.50 »

thank u i'll keep that in mind! and oh my gosh, your page is so cool!! i absolutely love the style you're going for and all the apps you've created!

Thank you! It's a long term passion project of mine, and I work on it in between my more public stuff.

You might eventually consider adding yours to this collection of "web desktops" that I've linked from mine: Awesome web desktops. It requires a github pull request, which is how I taught myself to do one finally.
Logged

Pages: [1] Print 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | ~ Send Feedback ~ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi