G
G
galyamov_marat2021-02-16 15:35:38
AJAX
galyamov_marat, 2021-02-16 15:35:38

Is it possible to unload an element and store it in a cookie?

I unload a div-element on the main page of the site, which contains an important notification for the user. The server can be contacted no more than 2 times per minute, otherwise the user will receive an IP block.

I use the code:

$('#push-add').load('/lk.html #push');

Tell me how to limit the number of downloads of this script and at the same time save the downloaded element in #push-add on the page?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question