Introduction:
Currently, I am in the process of developing a website that will utilize ajax to change content without refreshing the main frame and images every time. The main frame has its own site.css stylesheet.
Query 1:
Considering the use of a single stylesheet for all style information, would it be practical for website modularity? Updating the CSS every time a new page or content is added/removed due to varying style requirements might be a concern.
Query 1.1:
The same query, but now in relation to Javascript.
Query 2:
If having multiple stylesheets is deemed beneficial, is unloading a stylesheet when not in use advantageous? For instance, loading profile.php would dynamically load profile.css, but upon switching to settings.php, unloading profile.css and loading settings.css might have performance implications or save website size.
Query 2.1
Similar to the previous question, but now focusing on javascript functions.