L
L
LebedevStr2016-04-16 20:25:05
JavaScript
LebedevStr, 2016-04-16 20:25:05

How to load blocks in HTML on JS request?

Hello. There are some widgets in CS-cart that greatly affect page loading speed. But I can't refuse them :)

There was an idea to generate these blocks on a JS command, on a skrull.

The same example on aliexpress ru.aliexpress.com/item/free-shipping-1-6-Scale-Jas
...

The content itself is displayed in this way + the "View others" block only after the user's screen hits them.

How to enable block generation on request, not on page load.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2016-04-16
@leahch

Something like this - phppot.com/jquery/load-data-dynamically-on-page-sc...
Well, or according to this recipe - stackoverflow.com/questions/8192651/load-lazy-load...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question