• Resolved alexandre596

    (@alexandre596)


    Well, I guess I just need a kick start
    I’m trying to biuld a wordpress page (a page, not the whole site) with some pictures (that would be the album cover, since it’s a lyric page), and then you’d see the tracklist of the album…
    and when some click on the track title, the lyrics show up

    I can’t just list everything and then hide it with jquery toggle stuffs, the page would take forever to load! I need something that would just load the lyric of the song I clicked in, not all of them.
    I also don’t want to create tons of pages for every album and song, I don’t the user to be “jumping” from one page to another…

    I know it’s possible, but I don’t know where to start, can somebody help me? I just need to know where and what to look. I know got some programmers skills, I could use it…

    thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • To do that I’d suggest using AJAX. That will use JavaScript to load the lyrics from the server on demand instead of them all being in the page. You can read more about int in the intro to AJAX, and more specific information on using AJAX in a plugin (the same theory applies to themes too).

    I’d like to point out one thing though. The text for an album full of lyrics isn’t really that big as far as file size goes. The images on your site would be a bigger file size then the HTML would with that unless there’s soime serious text in there. Do some testing first to see just how big a file would be with all of the text included with it. It coudl very easily be that adding all of the JavaScript that’s required ot do this would end up prett similar to just loading the lyrics directly.

    Thread Starter alexandre596

    (@alexandre596)

    thank you so much, I’m going to check the links…
    and about the image size, I haven’t thought about that, I’m about to take a look at AJAX and see how the thing goes

    thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘don't load the full page, only some pieces’ is closed to new replies.