Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cut down version? #475

Closed
alexmcmillan opened this issue Mar 28, 2017 · 3 comments
Closed

Cut down version? #475

alexmcmillan opened this issue Mar 28, 2017 · 3 comments

Comments

@alexmcmillan
Copy link

I'd love to use this tool, but I can't justify 12k minified for it - especially when a lot of that appears to be flexible configuration (I just want an iFrame that doesnt collapse) and extending jQuery (which we don't use).

Is there any possibility of a "no-frills" version?

@davidjbradshaw
Copy link
Owner

davidjbradshaw commented Mar 28, 2017

Have been thinking about it. Along with an es6 version.

In the means time How about trying version 2.0?

@alexmcmillan
Copy link
Author

alexmcmillan commented Mar 28, 2017

v2.8.10 looks like it's 4k minified - that's a bit better.

Do you think it would be more efficient to look over the changes since then and incorporate anything important, or to work backwards from the latest version removing all the cruft?

@davidjbradshaw
Copy link
Owner

I would try v2 and if that works for you then just stick with it.

The jQuery wrapper is only five lines of code, and most of the options don't add much weight. The majority of the code is dealing with either working out the size of the page, or detecting that the content has changed.

At some point I plan to rip out all the support for IE8-11. Waiting on global usage to fall below 1%.

Thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants