N
N
NyxDeveloper2021-03-02 10:27:24
Django
NyxDeveloper, 2021-03-02 10:27:24

How not to render the entire html document, while leaving the variables in the template?

There was a problem with the loading speed of django templates when a large number of output elements through the loop. I'm using a js library to style the pagination of html plates, but it requires the elements to be on the page at the time the script is executed. I need (in some way that is still unclear to me) to load html elements into the page context, but not to display them, if at all possible. Can this be done using django, js or html?
This is not an ordinary task for me, so any help will be useful. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2021-03-02
@fox_12

And what prevents you from loading the necessary portions of data with ajax? Why ship everything at once.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question