I’m pleased

Hide episode info on page load

Now the episode info is hidden after the page has finished loading. This means that if a lot of episodes have to be loaded you can always see the episode info for a short time, after which it is hidden when the page has finished loading.
In my opinion it would be better that the episode info is already hidden when the page is created (in CSS this would be: display:none;). So that the episode info is only visible if you click on the episode you want to see.
1 person likes
this idea
+1
Reply
  • It's made that way so that the website works with or without JavaScript.
    We only hide the contents when the JavaScript loads, so that it can be accessible to anyone and any platform with or without JavaScript :)
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • That's a reasonable answer.
    But in that case the JavaScript code that closes the episode description could be split up and put right after the episode info. So that whenever the HTML code is loaded, immediately after that the script code will be loaded that closes the description. I think that will also make a difference in most browsers (not all I suppose).

    Another solution could be to find out if JavaScript is enabled on the first page load and then remember for the entire session. This will be a little more difficult to implement. And you will probably have to check on regular intervals (of page loads) if the JavaScript is re-enabled/disabled.

    And my last solution could be to make it a setting: use JavaScript or not.

    I really like the site, but it's already obvious that I don't like the way the episode info is loaded..
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • Thanks for the suggestions.

    However, we do not insert JavaScript inside the HTML as this is a bad practice. We have the HTML, CSS and JS all separated em 3 different files, as it should be. And the JavaScript is loaded only in the end, and that's why in some pages, when there is a lot of content, it takes a few seconds to kick in.

    Right now, the only solution would be to make the pages load a lot faster, so that the users wouldn't even notice it, but unfortunately, we are having some difficulties in arranging the time needed to continue working on MyTVShows (either fixing some bugs or finishing the new revamped version so taht we can open the registrations again).
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited