Adapting a Drupal theme to pure HTML with a tight timeline, as expected, the code came out a bit more complicated than I'd like.
In this way, I had the opportunity to explore JSON and some of its functionalities
and I decided to create a data.json
file to feed all the texts of the site and enable, in addition to the easy editing of these, in the near future support for other languages.
The following is an excerpt from JSON for review:
{"Textos": {
"TituloDestaque":"Lorem ipsum dolor sit amet,",
"CorpoDestaque":"<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit</p>",
"Sobre1":"<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit</p>",
"Sobre2":"<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>",
}}
Does this negatively affect the performance of a medium-to-large site?
The link I had access to test is rough , for lack of a better word, so I did not get a conclusive metric.
I'm talking about the order of 200 ~ 300 parametric paragraphs in a JSON file called by 8 ~ 10 pages for medium sites and 750 ~ 1000 paragraphs on 20+ pages on large websites.
If it is not correct to solve this, what would be the option without using BD?