PHP Developers Network
http://forums.devnetwork.net/

Advice on refactoring a single page site
http://forums.devnetwork.net/viewtopic.php?f=50&t=142520
Page 1 of 1

Author:  thinsoldier [ Tue Apr 26, 2016 5:32 pm ]
Post subject:  Advice on refactoring a single page site

I started with a typical 1 file per page site and added ajaxify: http://www.barznoble.com/ (*warning*: auto-playing music)

Then I redid it as a single page using the history api: http://www.barznoble.com/2/ (no auto-playing music)

What I need is

A: for someone to look through the code of the 2nd version and give advice on how I could improve the way I have the code arranged.

B: suggest an actual front end javascript framework to rebuild it with a 3rd time.

Author:  Christopher [ Tue Apr 26, 2016 5:48 pm ]
Post subject:  Re: Advice on refactoring a single page site

Other than putting the CSS and Javascript in to separate files, that is too much code to give much advice on.

Author:  Celauran [ Tue Apr 26, 2016 6:44 pm ]
Post subject:  Re: Advice on refactoring a single page site

Minify. Separate your concerns, definitely, but minify your CSS and JS. Make sure images are optimized.

Author:  thinsoldier [ Tue Apr 26, 2016 7:05 pm ]
Post subject:  Re: Advice on refactoring a single page site


Author:  Christopher [ Wed Apr 27, 2016 12:25 pm ]
Post subject:  Re: Advice on refactoring a single page site


Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/