Entrance Events! Chat Gallery Search Everyone Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
May 14, 2025 - @330.05 (what is this?)
Activity rating: Four Stars Posts & Arts: 60/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts Start New Topic  Submit Art
News: ozwomp is requesting your location  :ozwomp: [Agree] 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 121 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!
   
cynderthekitsune
Full 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
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:
Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

Website size

Started by RolyBoard ✁ ∙ Web Crafting

Replies: 72
Views: 12016
Last post April 20, 2025 @579.14
by chipyowo
Website example page

Started by Icey!Board ✁ ∙ Web Crafting

Replies: 3
Views: 2996
Last post December 16, 2021 @285.10
by cinni
Website status (Check replies for part 2)

Started by Icey!Board ☆ ∙ Projects

Replies: 8
Views: 3283
Last post December 26, 2021 @841.50
by Icey!

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