Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Why do apps run slow on AIR as compared to app.js and chrome. I've tried to run a js-jQuery code which does a slideToggle() and found that the slide is a lot smoother in app.js and chrome as compared to air. I've also noticed the opening of css+html+js based popups in AIR is slower.
Why is it so?
Googles own V8 is way ahead of the JS engine in WebKit which is WebCore.
Here's an article on V8s performance:
http://techon.nikkeibp.co.jp/article/HONSHI/20090106/163615/
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 11 months ago.
Improve this question
I wanted to ask is it a good idea to create header and after that adapt it to the mobile screens, even though other parts of the website are not created?
Try a mobile-first approach. If your application is gonna be responsive in the future then start by designing with mobile CSS. Then incrementally increase the dimension and add the media queries based on that.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
How hermes can be faster and does it affect on IOS or no it just make faster android app?
Its simply different interpreter for android, its not affect IOS.
But anyway if you want have reduced size of app on android maybe bundle instead of apk will be good fit for you :)
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I struggle to find any suggestions how to organize RactiveJs code.
Currently I just put RactiveJs code to the bottom of the page. It was okay till my scripts were small. But the bigger they are the more problem it causes. I'm considering moving the RactiveJs code to separate js files, may be using some pattern (Module?).
Are there any guidelines in this regards?
There is a spec for component-per-file: https://github.com/ractivejs/component-spec/ and there are loaders that allow you to incorporate them into the page.
However, Ractive doesn't force you to use this pattern. You are free to experiment whatever convention works for you.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
This code snippet is from a teammate of mine, his title is "Full Stack Developer". He mostly writes PHP. I found this code at the end of a .php file and asked him to move it to a separate .js file for testability, maintainability... just some best practices.
He denied, he actually said this code is "extremely simple" and refactoring just makes it more complicated without any benefits. He talked about KISS, about performance...
Just tell him story about Spaghetti code, design patterns, etc. and then fire him.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
What are the advantages of using requireJS if all the script files are merged into one in production?
Im working on a multiple page project.
You only merge the files for staging and production. In development you keep them separate.
This lets you manage your JavaScript by dividing it into discrete units. This makes it easier to test, easier to reuse and easier to find the piece of code you need to change.