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

Document browser compatibility #109

Closed
Boscop opened this issue Jan 15, 2018 · 8 comments
Closed

Document browser compatibility #109

Boscop opened this issue Jan 15, 2018 · 8 comments

Comments

@Boscop
Copy link

Boscop commented Jan 15, 2018

  1. Does it support old browsers like IE8/9 via asm.js?

  2. How big is the resulting app js file for TodoMVC with asm.js?

  3. Would you recommend it for commercial apps in production that need to target old browsers like IE8 on WinXP and Safari on iPhone4?

I'd prefer to use this at my job (compared to Elm which is very verbose) :)

@rivertam
Copy link
Contributor

  1. I believe this question is better suited for https://github.com/koute/stdweb.
  2. Maybe someone else has an answer, but why don't you build it and try it out for yourself?
  3. Personally, I would highly not recommend using this for commercial apps in production. Typically, semantic versions < 1.0.0 (this crate has a current version of 0.3.0) are never recommended for use in production due to unstable APIs and general lack of maturity.

@Boscop
Copy link
Author

Boscop commented Jan 15, 2018

I don't mind living on the edge, I also use rustc nightly in production (rocket needs it) etc.
But I care about the size of the app js file..
I'll see if I can get emscripten to work and test with asm.js, just thought someone had already done it maybe :)

@rivertam
Copy link
Contributor

Subjectively, Yew is in a far more experimental state than Rust nightly/Rocket. I can't speak for everyone, but I have serious doubts any contributors would recommend using Yew in production in its current state.

@koute
Copy link
Contributor

koute commented Jan 20, 2018

The support for old browsers (like IE8 and such) is limited by what Emscripten supports. I don't remember what minimum version of IE it supports, but for those old IE versions you need to disable certain Emscripten features to get it working (e.g. IE9 doesn't support typed arrays so you need to pass some magic linking flag to Emscripten [which I don't remember] to get it to load). Also, I never tested stdweb on anything else than IE11, so there is a significant chance it won't work on something older.

@Boscop
Copy link
Author

Boscop commented Jan 21, 2018

But everything works with IE11+?

@koute
Copy link
Contributor

koute commented Jan 21, 2018

No idea; I tested that a long time ago. It may or may not work. If it doesn't then it should be possible to make it work without much trouble, I think.

@dalen
Copy link

dalen commented Jan 22, 2018

There are also some webasm polyfills that might help with IE11 support, I haven't tried them myself, but have seen live demos of them.

@jstarry jstarry changed the title Old browser support? (IE) Document browser compatibility Dec 10, 2019
teymour-aldridge pushed a commit to teymour-aldridge/yew that referenced this issue Jul 8, 2020
* bumping up the yew version in Cargo.toml (#107)

* bumping up the yew version for stdweb

* bumping up the yew version of ConsoleService link

* bumping up the yew version

* Update src/more/debugging.md

Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
jstarry added a commit to jstarry/yew that referenced this issue Jul 10, 2020
* bumping up the yew version in Cargo.toml (yewstack#107)

* bumping up the yew version for stdweb

* bumping up the yew version of ConsoleService link

* bumping up the yew version

* Update src/more/debugging.md

Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
jstarry added a commit that referenced this issue Jul 10, 2020
* GitBook: [master] 2 pages modified

* Added code examples for the router docs. (#67)

* GitBook: [master] 3 pages modified

* GitBook: [master] one page modified

* Update the sample doc app to use wasm-pack (#75)

* Update the sample doc app to use wasm-pack

According to the rest of the documentation, wasm-pack and web-sys are
the recommended tool to use. However, the sample app documents the usage
of cargo-web and stdweb.

The command lines are taken from the example folder of yew.

* Some grammar fixes

* Use cargo miniserve instead of python to server the files

* Add wasm-bindgen dependency

* Fixed bad link to build script for wasm-bindgen/cargo-web (#81)

* Fixed bad link to build script for wasm-bindgen/cargo-web

* yewstack/docs#81 Updated link for cargo-web

* Update miniserve cargo install command (#88)

* create as lib right away (#93)

* updated (#92)

* GitBook: [master] 29 pages modified

* update the docs to specify that local agents do not incur serialization overhead (#89)

* Add a note telling how to bypass the recursion limit of the html! macro. (#94)

* Add a note telling how to bypass the recursion limit of the html! macro.

* Update src/concepts/html/README.md

Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>

* Update src/concepts/html/README.md

Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>
Co-authored-by: Justin Starry <justin.m.starry@gmail.com>

* Add latest Stack Overflow survey results (#95)

* Mention prop_or macro (#97)

* Mention prop_or macro

* Fix the prop_or vs prop_or_else mixup

* Update src/concepts/components/properties.md

Co-authored-by: Justin Starry <justin.m.starry@gmail.com>

* Fix a typo. (#102)

* Point to master branch for examples (#98)

* Point to master branch for examples

* Update src/getting-started/examples.md

Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>

* Update src/getting-started/examples.md

Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>
Co-authored-by: Justin Starry <justin.m.starry@gmail.com>

* Add code of conduct to documentation as well. (#104)

* Added "" for the version at line 25 (#107)

* Added "" for the version at line 25

* Update src/getting-started/starter-templates.md

Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>

Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>

* Removed periods and fixed spelling mistakes (#103)

* Added period to description

* Fixed the spelling of " Arguabley" to "Arguably"

* Update README.md

* Added period to description

* Added period to description

* Grammar and spelling correction

added period to description, fixed spelling of "encouter" to "encounter"

* Added period to description

* Added period to description

* Grammar and spelling

Added period to description, fixed spelling of "accross" to "across"

* Added period to description

* Added period to description

* Fixed spelling of "aggresive" to "aggressive"

* Removed period from description

* Update optimizations.md

* Removed period from description

* Removed period from description

* Removed period from description

* Removed period from description

* Removed period from description

* Removed period from description

* Removed period from description

* Removed period from description

* Removed period from description

* Removed period from description

* Removed period from description

* Update src/concepts/html/README.md

Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>

Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>

* Shorten line lengths. (#106)

* Shortens line lengths (to ~100 characters max per line).
 * A few stylistic improvements
 * Corrects a couple of typos
 * Fixes a few grammar errors

Co-authored-by: Justin Starry <justin.starry@icloud.com>

* bumping up the yew version in Cargo.toml (#107) (#109)

* bumping up the yew version in Cargo.toml (#107)

* bumping up the yew version for stdweb

* bumping up the yew version of ConsoleService link

* bumping up the yew version

* Update src/more/debugging.md

Co-authored-by: Justin Starry <justin.m.starry@gmail.com>

* Add #[derive(Clone)] in examples (#111)

* Add #[derive(Clone)] in examples

Closes #110

* Add backticks to rust elements

Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>

* Another backtics

Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>

* Fix typo (#112)

* GitBook: [master] 29 pages modified

* Fix spellcheck

* Remove duplicate code of conduct

Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>
Co-authored-by: Franck Royer <royer.franck@gmail.com>
Co-authored-by: Eamon Caton <etcaton@gmail.com>
Co-authored-by: David Poggi <drpoggi@users.noreply.github.com>
Co-authored-by: Stephan Dilly <dilly.stephan@gmail.com>
Co-authored-by: 洪慈吟 <lili668668@gmail.com>
Co-authored-by: Michal Kawalec <michal@monad.cat>
Co-authored-by: codec-abc <viot.camille@outlook.com>
Co-authored-by: Anthony Morris <anthony@amorrissound.com>
Co-authored-by: Günter Zöchbauer <guenter@gzoechbauer.com>
Co-authored-by: Darren Meehan <Darrenmeehan@users.noreply.github.com>
Co-authored-by: Nougator <37145431+nougator@users.noreply.github.com>
Co-authored-by: Dirk Puge <67125647+dirkpuge@users.noreply.github.com>
Co-authored-by: hituzi no sippo <43565959+hituzi-no-sippo@users.noreply.github.com>
Co-authored-by: Mingun <Alexander_Sergey@mail.ru>
Co-authored-by: FIGBERT <figbert@figbert.com>
jstarry added a commit that referenced this issue Jul 10, 2020
* bumping up the yew version in Cargo.toml (#107)

* bumping up the yew version for stdweb

* bumping up the yew version of ConsoleService link

* bumping up the yew version

* Update src/more/debugging.md

Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
jstarry added a commit that referenced this issue Aug 16, 2020
* bumping up the yew version in Cargo.toml (#107)

* bumping up the yew version for stdweb

* bumping up the yew version of ConsoleService link

* bumping up the yew version

* Update src/more/debugging.md

Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
@mc1098
Copy link
Contributor

mc1098 commented Sep 23, 2021

Hi 👋,

I agree that having browser compatibility information would be really helpful but as Yew is still in a state of constant flux this is a moving target. I worry defining the compatibility then might lead Yew into having to worry about backwards compatibility for browsers as it moves through versions which isn't what Yew should be worried about before "1.0.0".

#1948 was a similar issue raised and was closed due to the maintenance burden of keeping track of compatibility.

Once Yew gets closer to "1.0.0" then I completely agree that this would be invaluable to have!

I am going to close this issue for now - please let me know if you don't agree with this otherwise happy coding ❤️

@mc1098 mc1098 closed this as completed Sep 23, 2021
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

6 participants