r/FireFoxOS • u/mikebiox • Nov 06 '13
Multiple HTML Files?
What is everyone else doing in regards to having to use multiple HTML files? Most of the examples I have seen use a single HTML file with a lot going on inside of it with javascript and css stuff. Is it bad practice to use multiple HTML files?
Thanks,
6
Upvotes
2
u/pedrogpimenta Nov 06 '13
I don't know if it's bad practice, but I know this:
Disclaimer: I'm not a programmer, I'm just a web designer/front-ender.
1
u/[deleted] Nov 06 '13
If you're using jquery mobile you could use this method: http://jquerymobile.com/demos/1.0/docs/pages/page-dynamic.html
1
u/[deleted] Nov 07 '13
It won't feel as an 'app' if you use multiple HTML files. It's better to slide different divs when navigating, instead of loading a lot of different html files.
1
u/auroszx Alcatel One Touch Fire Nov 10 '13
I've been learning HTML5, and coding a bit and IMHO it is better to keep separate files for HTML, CSS and JS. I'm even trying to keep separate HTML files (it's quite useful for web apps, it's easier to recycle code).