• Stars
    star
    161
  • Rank 232,808 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 8 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Webpack plugin to optimize a JavaScript file for faster initial load by wrapping eagerly-invoked functions.

optimize-js-plugin

Webpack plugin that uses optimize-js

downloads version

Thanks to @nolanlawson for his awesome work.

Install

npm i --save-dev optimize-js-plugin

Usage

// webpack.config.js
const OptimizeJsPlugin = require("optimize-js-plugin");
module.exports = {
  entry: //...,
  output: //...,
  plugins: [
    new webpack.optimize.UglifyJsPlugin(options),
    new OptimizeJsPlugin({
        sourceMap: false
    })
  ]
}

Options

All options as mentioned here

More Repositories

1

js-cpa

Code pattern analysis for JS
JavaScript
126
star
2

react-memorystats

React Component for Memory Stats
JavaScript
42
star
3

awesome-http2

Collection of awesome things for HTTP/2
16
star
4

rum-profiler

Sampling profile code for RUM
JavaScript
14
star
5

tailor-spa

Single Page Application prototype using Tailor.
HTML
12
star
6

bundle-duplicates-plugin

Identify duplicate functions across webpack JS bundles
JavaScript
10
star
7

agent-pool

Agent pool that rotates keepalive agents for traffic switching via DNS records
JavaScript
9
star
8

first-contentful-paint

Polyfill for measuring First Contentful Paint (FCP) in the browsers that does not support paint timing API.
JavaScript
8
star
9

compress-payload

Utiliy for compressing and decompressing RUM payload data
JavaScript
7
star
10

perf-hints-plugin

Provide performance hints in webpack output
JavaScript
6
star
11

monitor-sockets

Monitor & debug socket connections in Node.js seamlessly.
JavaScript
5
star
12

script-order

Find the order in which all script tags were executed on a web page.
JavaScript
4
star
13

chunk-view

Visualise chunks for HTTP response.
JavaScript
3
star
14

sw-resource-priority

Resource Scheduling with Service Worker
JavaScript
3
star
15

phrontend-example

Sample app using Phrontend
JavaScript
3
star
16

cdn-finder

CDN Finder tool.
JavaScript
2
star
17

tailor-apm-demo

Running tailor with Elastic APM (Node.js & Browser agent)
HTML
2
star
18

WebSpeech-Demo

JavaScript
1
star
19

synthetics-ecommerce-demo

Demo of @elastic/synthetics agent using a Ecommerce shop.
JavaScript
1
star
20

cache-hit-ratio

Calculate cache-hit-ratio per resource (WIP)
JavaScript
1
star
21

slug-urls

Convert URL paths in to slug based on path tree depth
JavaScript
1
star
22

rum-react-spa

Testing `@elastic/apm-rum-react` on Single Page Application with react router
JavaScript
1
star
23

synthetics-pw-runner

Synthetics runner using Playwright
TypeScript
1
star
24

tailor-libs

Collection of all packages that can be used along with tailor framework.
JavaScript
1
star
25

node-inflight-requests

Measure the number of inflight requests at any given time in your Node.js server.
JavaScript
1
star
26

rum-agent-payload

Testing Optimisations for payload size of Elastic RUM agent.
JavaScript
1
star
27

chrome-devtools-profilers

1
star
28

vigneshshanmugam.github.io

My Personal Webpage.
HTML
1
star
29

folio-synthetics-test

Write synthetics runner using Folio.
TypeScript
1
star
30

elements-kinds

JS helper function to debug elements kinds in v8
JavaScript
1
star
31

tbt-experiment

Experimenting with capturing Total Blocking Time in RUM/Field
1
star