Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

bigpipe-test

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

bigpipe-test

This library currently implements small part of [Facebook Bigpipe][blog] so far, but the advantage is efficiently insert/replace content and work with the DOM. It is also possible to easily call JavaScript modules from PHP.

unpublished
latest
Source
npmnpm
Version
0.1.7
Version published
Maintainers
1
Created
Source

BigPipe

This library currently implements small part of Facebook Bigpipe so far, but the advantage is efficiently insert/replace content and work with the DOM. It is also possible to easily call JavaScript modules from PHP.

Requirements

  • PHP 7.1 or higher
  • Node 8, 10+.
  • Webpack

Installation

These steps are required:

  • Install composer package:
$ composer require richarddobron/bigpipe
  • Install npm package:
$ npm install bigpipe-js
  • Add this line to app.js:
window.require = (modulePath) => require('./' + modulePath).default;
  • Add this line to page footer:
<script>
    (new (require("bigpipe-js/ServerJS"))).handle(<?=json_encode(\dobron\BigPipe\BigPipe::jsmods())?>);
</script>

Credits

License

The MIT License (MIT). Please see License File for more information.

Inspiration

Bigpipe is inspired by the concept behind Facebook's BigPipe. For more details read their blog post: Pipelining web pages for high performance.

Keywords

bigpipe

FAQs

Package last updated on 25 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts