Optimizing pages from side of javascript [closed] - javascript

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
I need to know about two things. I was looking on google but I could not found any good.
First thing is: Location of the scripts in the structure of documents.
Can anyone explain to me what's going on? How it works to optimize pages and where you should put the scripts?
Second thing is: Packing and compressing js code.
I find some packers in google like this: http://dean.edwards.name/packer/ but how its work? All writen scripts should pack?
Please for an explanation or some link to article.

Concerning your first point, one answer to look at would be this one:
https://stackoverflow.com/a/24070373/1145461
Concerning the 2nd point, hopefully this link will help:
http://en.wikipedia.org/wiki/Minification_(programming)

Related

How to improve creativity for programming JavaScript [closed]

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 5 years ago.
Improve this question
I have learned front end development programming languages.
But I don't know how to create my own code because of lack of creativity...
Can you suggest how to solve this problem?
When I first started with development in front end I was just like you. But I can give you some advices that worked for me for the last 3 years.
Reading blog of famous developer is a really good way. You can find here https://blog.digitalocean.com/20-developers-to-follow-in-2014/
Reading other code and demo, https://codepen.io/ this is one of my favorites.
Learn how to solved problem by design pattern. This is my favorite way to improve my coding skill. https://scotch.io/bar-talk/4-javascript-design-patterns-you-should-know . You can google for more results.
Take some courses about frontend development on https://www.udemy.com/ . When you watch someone coding, you will learn the way they thinking, the way the solved problem, the way they code, ....
Hope you have a good start.

How to start with javascript code obfuscation? Not looking for tools [closed]

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 7 years ago.
Improve this question
I would love to learn how to do javascript obfuscation. I have been searching through the web but I have not found anything to start with. Only posts about tools and more tools...
Is there any book?
What techinques are there?
Can someone show me some link to understand javascript obfuscation?
There are several ways to do it?
Is this explained in the javascript or ecmascript documentation?
I'm not looking for any tool. I only want to understand it and learn it.
The most comprehensive obfuscation method is converting all JavaScript code to non-alphanumeric characters. This blog post covers how it works and links to a converter tool in case you change your mind.

Javascript- Good practice for beginners? [closed]

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
How should a beginner JavaScript programmer practice knowing they cannot code any program due to limited knowledge.
Is there any place where I can find some exercises to practice as I keep forgetting because I never practice what I learned..
There are many place to learn, one that I found very useful was codecademy which has set tutorials. I find I learn best when I have an objective that I am working towards, which codecademy provides.
Perhaps you could take a look here and find a few projects that sound interesting? The only way to get better is to practice.

Best practice for including css and javascript files [closed]

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
I've always wondered about including javascript libraries and a mess of stylesheets in pages that don't ever use them. It got me wondering if maybe performance would improve, however slight, if I were to include these files on an as needed basis. Is there a best practice to go by on this? Some of these javascript libraries are very large and if they're not needed, it would seem to me that they shouldn't be included.
I'd like to hear the thoughts from others on this.
I think you are talking about Asynchronous Module Definitions (AMD).
One of the more popular implementations of this is Require.js. Check it out.

Javascript tool/website for sharing scripts and developing [closed]

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
I'm looking for a website/service were I can develop and share my Javascript code with others. I had a site open in browser the other which did it nicely, but after searching my history and googling around for half an hour, I can't find anything.
The site I saw was split into four areas: html, css, javascript and result..
Anybody know a site like that?
JSFiddle is what you're looking for.
http://jsfiddle.net
JSFiddle
Note that at times when JSFiddle is slow, you might want to use JSBin.

Categories

Resources