I'm starting off with a new website administration design.
I was going to have an index page and have a menubar at the top.
All content, forms, pages etc will be loaded via fetch methods and other vanilla JS.
My JS file is already long and there's challenges managing PHP errors and JS errors correctly.
My question is, is this approach recommended or is one better going back to individual pages and just post the forms themselves via JS fetch.
Using the school, class student model.
Have a classroom pages for add, edit, delete and just fetch update these
Have a student pages for add, edit, delete just fetch update these
fetch the classroom index, further fetch add form, further fetch save add etc.