[Fixed]-Django: How to calculate a context value AFTER rendering template?

1šŸ‘

Iā€™m not sure about when you want to start loading the heavy value. Upon reaching page 1?

As you want to avoid ajax, you could include the heavy object as an iframe or if it makes sense as an image or other data format. That way it could be loaded independently and you could set it up to take advantage of browser caching if the value does not change often.

šŸ‘¤djangonaut

Leave a comment