Open jaidevshriram opened 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.
The Computer Programming lab is a good example of what could be implemented.
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 :
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:
Reduce number of files that must be fetched to render the website.
Easier website maintenance as style, scripts only have to be updated on one file.