Skip to content
/ vk-async Public

Asynchronous loader/initializer for vkontakte (vk.com) widgets

License

Notifications You must be signed in to change notification settings

H1D/vk-async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###Requirements

jQuery 1.2.1+

###Usage Put script tags to the <head> of your page

<script type="text/javascript" src='https://yandex.st/jquery/1.6.2/jquery.min.js'></script>
<script type="text/javascript" src='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/media/vk-async.min.js'></script>

Push all VK-related code to be executed after VK API initialization like that:

VK_async.ready(function () {
    VK.init({apiId: YOUR_API_ID, onlyWidgets: true});
    VK.Widgets.Comments("vk_comments");
});

###API By default (https://userapi.com/js/api/openapi.js?48) is used to load VK API. You can change URL like that:

<script type="text/javascript">
   VK_async.setAPIScriptPath('https://userapi.com/js/api/openapi.js?49');
</script>

About

Asynchronous loader/initializer for vkontakte (vk.com) widgets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published