Skip to content

Cloudflare CDN 无法访问时所有页面白屏 #969

Description

@TripleCamera

Issue Checklist

Expected behavior

加载页面时,内容逐渐淡入。

Actual behavior

Cloudflare CDN 无法访问时,页面持续为白色。

Steps to reproduce the behavior

  1. 打开任意使用 NexT 主题的网站(例如官网),网页正常显示。
  2. 屏蔽 https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js(当然屏蔽整个 cdnjs.cloudflare.com 也可以)。
  3. 刷新,页面白屏。控制台报错:
    Uncaught TypeError: can't access property "timeline", window.anime is undefined
    

Node.js and NPM Information

Package dependencies Information

Hexo Configuration

NexT Configuration

Other Information

主题设计者应该确保外部 JS 无法加载时,内容也能正常显示。

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions