T
T
Tenebrius2018-01-30 09:44:05
JavaScript
Tenebrius, 2018-01-30 09:44:05

How to avoid brakes when requesting blocked resources?

The site uses Vkontakte widgets - comments, likes, group, chat.
If someone has it blocked (at work, for example), then requests go, hang, slow down page loading.
How to avoid such sagging?
How to request resources asynchronously?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-01-30
@Tenebrius

https://learn.javascript.ru/external-script
1) Move all scripts to the bottom of the page, before the closing tag 2) Add the async tag to scripts that do not affect the site. </body>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question