Skip to content

Optimize the loading of comment counter [solved] #271

@ghost

Description

I agree and want to create new issue

on my blog ,comment limit loading rate of sit, that maybe also for many users.
although some comment plug-in not block the main thread on page showing, it still load and a loading icon show on chrome status bar. others plug-in even block the page showing.
i used gitment,youyan,changyan,LiveRe , now i used valine,

  1. comment counter default loading on homepage.
    i think there should be a option to control the comment counter plug-in in homepage also postpage.
    if i set show 5 post in homepage , there will be 10 http requests, and cdn won't work on it;
    screenshot from 2018-05-04 12-24-57

  2. some js file url should write in _config.yml such as

    {% if theme.valine.enable and theme.valine.appid and theme.valine.appkey %}
    <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
    {% set valine_uri = '//unpkg.com/valine/dist/Valine.min.js' %}

    {# custom analytics part create by xiamo; edited by LEAFERx #}
    <script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.4.js"></script>
    <script>AV.initialize("{{theme.leancloud_visitors.app_id}}", "{{theme.leancloud_visitors.app_key}}");</script>

    cdn1.lncld.net is really slow

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions