virtual-labs-archive / data-structures-iiith

This repository contains sources to Data Structures Lab IIITH.
https://cse01-iiith.vlabs.ac.in/
Other
1 stars 73 forks source link

List of Experiments: Unnecessary Redirects (Inefficient) #214

Open jaidevshriram opened 5 years ago

jaidevshriram commented 5 years ago

The list of experiments for Data Structures uses an inefficient method to display slightly varying page content.

Current Method:

<a href="Introduction.html?domain=Computer Science" class="sidebar-a" > <a href="List of experiments.html?domain=Computer Science" class="sidebar-a" > <a href="Target Audience.html?domain=Computer Science" class="sidebar-a" > <a href="Courses Aligned.html?domain=Computer Science" class="sidebar-a" >

The only difference in the content on these pages is a paragraph in this section : image

Possible Solution:

A better solution would be possibly including all the paragraphs on the same page, and displaying what's required depending on the button clicked. (Could easily be done in JS).

Toggle display:block and display:none

Benefit:

  1. Reduce number of files that must be fetched to render the website.

  2. Easier website maintenance as style, scripts only have to be updated on one file.

jaidevshriram commented 5 years ago

Similar Implementations exist across all experiments. I feel that new HTML pages would be beneficial only when the content on it is significant.

jaidevshriram commented 5 years ago

The Computer Programming lab is a good example of what could be implemented.