just started off at a new company and i inherited js-heavy work in progress.
the original version relied heavily on 'standard' javascript loading (for packed jquery and a jquery plugin) and apparently there were enough performance issues to warrant a look at alternative approaches.
what was done was implement lazy loading to append the <script src> into the DOM dynamically, and recursively check until it was fully loaded, at which point it loaded the second and third external scripts and so on.
the problem with this was excessive load on our (shared) server.
that's when the programmer called it quits and when i come in.
in the brief conversation he had with me he suggested i dynamically generate the js server-side and implement some sort of caching mechanism but that only really confused me.
so, basically, here's where i stand:
we have a banner that will be inserted into many sites. the banner relies on jquery and a jquery plugin + some custom js to do its thing.
how can this be optimized so that each individual user acessing each individual site won't create unnecessary server overload (we currently cant afford a dedicated server)?
thx!
Alex
the original version relied heavily on 'standard' javascript loading (for packed jquery and a jquery plugin) and apparently there were enough performance issues to warrant a look at alternative approaches.
what was done was implement lazy loading to append the <script src> into the DOM dynamically, and recursively check until it was fully loaded, at which point it loaded the second and third external scripts and so on.
the problem with this was excessive load on our (shared) server.
that's when the programmer called it quits and when i come in.
in the brief conversation he had with me he suggested i dynamically generate the js server-side and implement some sort of caching mechanism but that only really confused me.
so, basically, here's where i stand:
we have a banner that will be inserted into many sites. the banner relies on jquery and a jquery plugin + some custom js to do its thing.
how can this be optimized so that each individual user acessing each individual site won't create unnecessary server overload (we currently cant afford a dedicated server)?
thx!
Alex
