9

My former senior developer thought that including script tags for each JavaScript function you write is efficient. For example: contact function will have contact.js, vacancy function will have vacancy.js. FYI he doesn't merge them in production. What's more shocking was that my project manager thought was the same.

This also applies to CSS when using media queries.

Comments
  • 2
    Nice performance 👌
  • 0
    Pre HTTP/2, that is a bad solution. But now with HTTP/2 you can split the files up, and only include the ones you need. But to an extent of course. Not one file for each function, but one file for each page, and one for common functions etc
  • 0
    HTTP pipelining
Add Comment