2

Hey, just had a doubt. https://null-byte.wonderhowto.com/ take any website like this one (ideally any type of site with lots of links to other pages or posts). So my doubt is , is there a way to not hardcode all the links in the master page?. Or how exactly do professionals manage such sites?. I tried googling a lot but couldn't find the exact answer i was looking for. It'll be great if u can help me with this. Ik it's a noob question, but still😅

Comments
  • 4
    Well I guess they just have a database with all the articles and then they just query the latest/most popular articles and put them in there.

    Edit: the popular ugly bastard sites use java script to query that data.
  • 1
    Use a cms or a database to store pages or content, then you can fetch links and content dynamically :D
  • 1
    @b3b3 js?. How?. And wouldn't that slow down loading times?
  • 1
    @alexbrooklyn i think so too
  • 1
    @spdhiraj99 many webapps use javascript everywhere to dynamically load in content through an api
  • 1
    @spdhiraj99 Fast servers and some caching.

    Even with twenty database queries a loading time below a quarter second is still more than possible.
    If this is still too slow, only do this once and cache the results and the whole rendered site.
  • 0
    @sbiewald oh okay, that makes sense
  • 0
    @alexbrooklyn mm, okay,. I get it
Add Comment