Answer the question
In order to leave comments, you need to log in
Is it right to organize frontend delivery in this way?
Compiled a project assembly template - a repository with a detailed description
Brief description
The template allows you to upload only the necessary resources to the pages. This is achieved by dividing the page into blocks (components). Resources are loaded onto the page via an ajax request. The response is cached in localStorage. When downloading, the cache is checked for validity.
I would like to ask the community:
Answer the question
In order to leave comments, you need to log in
First thought. HTTP requests are very expensive. Do you have a lazy-load to avoid loading, for example, a footer on a very long site?
How do you invalidate the cache?
Have you looked at native es6 modules?
In general, I like the idea, but since native modules have not taken root yet, you will have problems with this campaign.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question