GithubHelp home page GithubHelp logo

test_slow_block's Introduction

README

This module is meant solely to test BigPipe in Drupal 8. The module provides one block, the "Test Slow Block", which takes a while to render, and sets its cache max-age to 0, deeming the block uncacheable.

If you're logged out / anonymous, the block will still be cached if the anonymous page cache is enabled. However, if you're logged in, the block will take 10s to render and won't be cached due to the max-age setting.

BigPipe only works for authenticated users, but requires certain settings in your webserver environment; see the BigPipe environment requirements for more information.

To Test

  1. Enable this module (requires BigPipe).
  2. Place an instance of the 'Test Slow Block' in your theme.
  3. Visit a page where the block is displayed as a logged-in user.

If BigPipe is working and your environment is configured correctly, you should see the entire page load, then after a long delay, this block will render where you placed it.

If BigPipe is not working or your environment is not configured correctly, the page will take a long while to load, even after refreshing a few times.

For more information on envrionment configuration and testing in Drupal VM, see: geerlingguy/drupal-vm#527

test_slow_block's People

Contributors

geerlingguy avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.