I am building a web site that is all responsive, large screen, tablet, mobile sizes. Design has large images. When the page resizes it is jerky and doesn't recalculate in javascript until the event letting go of the page happens. I noticed in Chrome Inspector some of the javascripts take 8 secs to recalculate.
My question is will using php includes for header, footer and navigation make the load lighter? Can the header/footer/nv be cached? Can I cache the static images?
Or is the lag just because of the page re-rendering in Javascript and the includes aren't changing anything? If PHP serves the header and footer on every page hit and javascript, CSS renders them, then theoreticallyis it the same difference as having the header/footer/nav duplicated in each page? In this case the header,footer or nav will not be changing or at least I am not required to give them that feature so I am not worried about the client being able to edit it.
I want to ensure that the recalculations in the responsive is as speedy as possible.
thanks,