这是indexloc提供的服务,不要输入任何密码
Skip to content

Use with CDN #103

@QuLogic

Description

@QuLogic

We (at obspy/obspy) are hosting our documentation online and would like to switch to the bootstrap theme. There are two important optimizations lacking though. First is loading CSS and JS from a CDN. Second is deferring JS loading to the end of the document.

My first attempt at achieving this was to extend layout.html, and overwrite css_files and scripts_files with CDN links instead. Unfortunately, this does not work because jinja2 executes statements outside blocks in reverse. So it seems the only way to get this to happen is to have the bootstrap theme support it natively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions