virtual-labs / virtual-english-iitg

This repository contains sources for "Virtual English" lab IITG
https://ve-iitg.vlabs.ac.in
Other
0 stars 5 forks source link

Experiments: Unnecessary Redirects (Inefficient) #45

Open jaidevshriram opened 5 years ago

jaidevshriram commented 5 years ago

The experiments all use an inefficient method to display slightly varying page content.

Current Method:

<a href="Listening Skills.html"><img src="images/content_1.png" /> <a href="Listening Skills(Procedure).html"> <a href="Listening Skills(Self Evaluation).html"><img src="images/content_3.png" /> <a href="Listening Skills(Reference).html">

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

Possible Solution:

Keep the differing content from all pages into one page and based on clicks, selectively display what is required.

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.