optimize-js - Optimize a JavaScript file for faster initial load by wrapping eagerly-invoked functions

  •        6

Optimize a JavaScript file for faster initial execution and parsing, by wrapping all immediately-invoked functions or likely-to-be-invoked functions in parentheses. See the changelog for recent changes.

https://github.com/nolanlawson/optimize-js#readme
https://github.com/nolanlawson/optimize-js

Dependencies:

acorn : ^3.3.0
concat-stream : ^1.5.1
estree-walker : ^0.3.0
magic-string : ^0.16.0
yargs : ^4.8.1

Tags
Implementation
License
Platform

   




Related Projects

preact-pwa - Super fast progressive web app with small footprint & minimal dependancies

  •    Javascript

A Super fast progressive web app with a small footprint & minimal dependencies. Features universal rendering, redux, state-driven routing, preact, & service workers. Crunched & optimized with rollup, buble, optimize-js, & purify-css.

closure-compiler-js - Package for the JS version of closure-compiler for use via npm

  •    Javascript

Check, compile, transpile, optimize and compress JavaScript with Closure Compiler in JS

purifycss - Remove unused CSS. Also works with single-page apps.

  •    Javascript

A function that takes content (HTML/JS/PHP/etc) and CSS, and returns only the used CSS. PurifyCSS does not modify the original CSS files. You can write to a new file, like minification. If your application is using a CSS framework, this is especially useful as many selectors are often unused. Array of glob file patterns to the files to search through for used classes (HTML, JS, PHP, ERB, Templates, anything that uses CSS selectors).

laravel-image-optimizer - Optimize images in your Laravel app

  •    PHP

This package is the Laravel 5.4 and up specific integration of spatie/image-optimizer. It can optimize PNGs, JPGs, SVGs and GIFs by running them through a chain of various image optimization tools. The package will automatically detect which optimization binaries are installed on your system and use them. The package also contains a middleware to automatically optimize all images in an request.

grunt-processhtml - Process html files at build time to modify them depending on the release environment

  •    Javascript

This is required. Types: js, css, remove, template, include or any html attribute if written like this: [href], [src], etc.


moize - The consistently-fast, complete memoization solution for JS

  •    Javascript

moize is a consistently blazing fast memoization library for JavaScript. It handles multiple parameters (including default values) without any additional configuration, and offers a large number of options to satisfy any number of potential use-cases. All parameter types are supported, including circular objects, functions, etc. There are also a number of shortcut methods to memoize for unique use-cases.

drawable-optimizer - Gradle plugin to optimize png files and reduce resultant apk size within an Android project

  •    Groovy

Gradle plugin to optimize png files and reduce resultant apk size within an Android project. With this plugin you will be able to optimize the png files size inside your AndroidStudio project. It works over the folder in which the resource merging was executed, by default in a Mac OSX system is app\build\intermediates\res\merged.

mimosa - A modern browser stack boilerplate. Watch, compile, lint, optimize, serve.

  •    Javascript

A modern browser stack boilerplate. Watch, compile, lint, optimize, serve.

PyMathProg

  •    Python

PyMathProg is a Python reincarnation of AMPL and GNU MathProg modeling language, implemented in pure Python, connecting to GLPK via PyGLPK. Create, optimize, report, change and re-optimize your model with Python, easily integrate database, plotting, etc.

tmi - TMI (Too Many Images) - discover your image weight on the web

  •    Javascript

Find out the image weight in your pages, compare to the BigQuery quantiles and discover what images you can optimize further. Verbose mode will show you a detailed summary of which images needs improving.

JProf viewer

  •    Java

A viewer to view and analyze the old Java profiler's (java -prof MyApp) output. With the help of this software it is easier to choose the methods to optimize, so you need not optimize all your methods.

JCH Optimize

  •    PHP

Joomla! plugin to optimize web page download by aggregating and minifying external css and javascript files

jpegoptim - jpegoptim - utility to optimize/compress JPEG files

  •    C

jpegoptim - utility to optimize/compress JPEG files

genetify - An unobtrusive way to A/B test and optimize webpages

  •    PHP

An unobtrusive way to A/B test and optimize webpages

frontend-nanodegree-mobile-portfolio

  •    Javascript

Your challenge, if you wish to accept it (and we sure hope you will), is to optimize this online portfolio for speed! In particular, optimize the critical rendering path and make this page render as quickly as possible by applying the techniques you've picked up in the Critical Rendering Path course. To get started, check out the repository and inspect the code.

RequestReduce - Instantly makes your

  •    CSharp

All background images you want to sprite [must have an explicit width in their css class] (http://github.com/mwrock/RequestReduce/wiki/Can-I-make-changes-to-my-CSS-classes-to-optimize-RequestReduce-spriting%3F). Otherwise RequestReduce cannot guarantee that the background positions it injects will not cause adjacent sprites to bleed into a background image's view port. Also, RequestReduce will ignore repeating images so make sure to mark the image no-repeat if it is not a repeating image. ##Troubleshooting If RequestReduce does not appear to be doing anything, check out this [troubleshooting wiki] (https://github.com/mwrock/RequestReduce/wiki/RequestReduce-is-not-working.-I-don%27t-see-any-spriting-or-minification.-How-can-I-troubleshoot-this%3F) which provides several scenarios, options and debugging tips for figuring out why your content may not be being reduced. Also check the [list of wiki support pages] (https://github.com/mwrock/RequestReduce/wiki) which provides documentation addressing several topics to help you optimize RequestReduce and explain how RequestReduce works.

yall.js - A fast, flexible, and small image lazy loader!

  •    Javascript

yall.js is a featured-packed lazy loading script for <img>, <picture>, <video> and <iframe> elements. It works in all modern browsers including IE11. It uses Intersection Observer where available, but falls back to scroll, touchmove, resize, and orientationchange events where necessary. It can also monitor the DOM for changes using Mutation Observer to lazy load image elements that have been appended to the DOM after initial page render, which may be desirable for single page applications. It can also (optionally) optimize use of browser idle time using requestIdleCallback. To optimize decoding of <img> lazy loading for simple src and srcset use cases, yall.js uses Image.decode where available to decode images asynchronously before adding them to the DOM.

udportfolio

  •    Javascript

Your challenge, if you wish to accept it (and we sure hope you will), is to optimize this online portfolio for speed! In particular, optimize the critical rendering path and make this page render as quickly as possible by applying the techniques you've picked up in the Critical Rendering Path course. The portfolio was built on Twitter's Bootstrap framework.

gifsicle - Create, manipulate, and optimize GIF images and animations

  •    C

Gifsicle manipulates GIF image files. Depending on command line options, it can merge several GIFs into a GIF animation; explode an animation into its component frames; change individual frames in an animation; turn interlacing on and off; add transparency; add delays, disposals, and looping to animations; add and remove comments; flip and rotate; optimize animations for space; change images' colormaps; and other things. Gifview, a companion program, displays GIF images and animations on an X display. It can display multi-frame GIFs either as slideshows, displaying one frame at a time, or as real-time animations.

jslib-base - 最好用的JS库脚手架,只为更好的JS生态,让开发一个JS库更简单,更专业

  •    Javascript

最好用的JS库脚手架,只为更好的JS生态,让开发一个JS库更简单,更专业