Skip to content

Tiny small compact IE9+ window.alert, window.prompt, and window.confirm drop-in dialog box replacements.

License

Notifications You must be signed in to change notification settings

anonyco/notiePlusPlus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

notiePlusPlus

NotiePlusPlus is a much superior version of jaredreich's notie, featuring both far smaller file sizes (3.47kb GZipped / 11.51kb before GZip) and a much more convienent single-file delivery that improves load speed. In comparison, Jaredreich's original Notie weighs 4.3kb GZipped / 16.7kb before GZip. The extra 0.8kb/5.2kb are a needless waste of space. I decided to make a whole new repoitory instead of submitting this as a pull request because this repository makes several huge changes that I believe jaredreich would not understand as improvements because these changes would super-seed all other pull requests due to the entire file structure changing.

  1. Webpack -> Closure Compiler. The Webpack system that jaredreich uses super-massively bloats the file size.
  2. CSS and JS loaded separately -> All loaded together as one JS file. There is an easy async="" attribute for scripts, but no such convenient option for stylesheets (aside from lazload="", but lazyload="" only works in Internet Explorer and Edge). Thus, a single asynchronous script will have less impact on load speed than with the addition of a synchronous stylesheet. #3. cdnjs -> Dropbox. This is more of a disadvantage. This library does not have enough stars to be hosted on cdnjs.
  3. jaredreich's notie annoyingly overwrites the built-in alert, confirm, and prompt functions. This repository keeps the built-in window.alert, window.prompt, and window.confirm functions, instead substituting in window.notie.alert, window.notie.prompt, and window.notie.confirm.
  4. Improved font-size scaling to be based off viewport units via CSS calc instead of based upon media queries

If you are jaredreich, and you actually wish to merge my changes with your original notie repository, then please copy over the files as you see fit, open an issue at this repository that you are merging the changes with your repository, and I shall close this repository promptly. Until then, this repository will stay open to provide developers with a better alternative.

About

Tiny small compact IE9+ window.alert, window.prompt, and window.confirm drop-in dialog box replacements.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages