My question might be weird but I really need to trigger an onclick() event when visiting a web page.
Here's my code: https://github.com/Kakise/Blog/blob/master/themes/cactus/layout/_partial/scripts.ejs#L66
var disqus_shortname = '<%= theme.disqus.shortname %>';
$(document).ready(function() {
$('#disqus-load').on('click', function(){
$.ajax({
type: "GET",
url: "//" + disqus_shortname + ".disqus.com/embed.js",
dataType: "script",
cache: true
});
$(this).fadeOut();
}); });
I'd like that when I visit this url with #disqus_thread in the end, it acts as if I clicked on the #disqus-load div and loads the comments.
Thank you