What are the advantages of exporting multiple distinct pages in one HTML file vs each page in a separate HTML file?
-
I am new to mobile app development. I noticed that many prefer to have all HTML code in a single HTML file why? I thought managing separate HTML files might seem easier as we can associate a separate js file to each HTML file to handle dynamic behaviors but again there has to be advantages when using the single HTML file version. So what are the pros and cons of these two approaches when comes to writing HTML5 mobile apps. Why having all html code in a single file is preferred?
-
Answer:
Remember DRY principle. Dont Repeat Yourself.
Anonymous at Quora Visit the source
Related Q & A:
- Is it mandatory to have broadcast receiver as a separate file?Best solution by stackoverflow.com
- How to merge multiple CSV files into a single CSV file?Best solution by solveyourtech.com
- How to convert a HTML file to XML file?Best solution by Stack Overflow
- How to make the first page of a PDF display by itself and the succeeding pages display two-up?Best solution by Super User
- What are .cue files and how to separate a large flac file?Best solution by techsupportalert.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.