Page History

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The best practice though, is to cut the first line of code and move it to the <head> section of your page. This line loads Gigya's JS library Web SDK file.

The outcome is:

Code Block
languagejs
linenumberstrue
<html>
<head>
    <script src="http://cdn.gigya.com/JS/gigya.js?apiKey=2_Y82PzwJ_chSFImHXaIDJClnLyJzmk-VFOavSsaNTzl6m901s_NNxRAS0xJ3bd3_N" type="text/javascript"></script>
</head>
<body>
    <div id="commentsDiv"></div>
    <script type="text/javascript">
        var params =
        {
            categoryID: 'Sports',
            streamID: '',
            version: 2,
            containerID: 'commentsDiv',
            cid:''
        };
        
        gigya.comments.showCommentsUI(params);
    
    </script>
</body>
</html>

...