Look for Javascript usage [closed] - javascript

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 4 years ago.
Improve this question
I've inherited a c# .net 3.5 project which I am task with converting to .net core. This is pretty much done.
However, in this project there are A LOT!!! of third party javascript libraries and I am certain there are many of them that are not being used or not needed.
Is there a way to scan the whole project to see if any of the libraries are not used?
I know this is unlikely but thought I'd ask.
Thank you

Using Chrome (but still valid with other browsers with little changes)
press F12 and click on "sources tab"
Then you can display all Resources used from your web page, images, css, scripts...
Or you can use a third party tool like this
https://marketplace.visualstudio.com/items?itemName=RobertHoffmann.FindUnusedFiles
but personally i prefrerr to do it manually not using an automatic tool.

Related

A dynamic site that does not use JavaScript [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I started using the python django framework. Can I open a dynamic site without using JavaScript? I find python easy to use and for some reason I don't like JavaScript.
In order to implement dynamic elements (such as displaying messages at button click without updating the site) you need to instruct the browser to change the respective DOM elements.
Currently the only fully supported language that browsers understand for that purpose is Javascript.
There are Javascript alternatives such as Dart or Typescript, but they need to be transpiled to Javascript to work with browsers.
So, practically you cannot build a dynamic website without Javascript at the moment.

How can I make my site mobile friendly? Or write a mobile mode for it? [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 1 year ago.
Improve this question
I am creating a website with React and I couldn't find an answer anywhere. Do I need to write special css codes to make my website more mobile friendly? I tried using "%" method but that did not seem to work. Or do I need to write seperate .js and .css files just for my sites mobile mode? What would be your advice to me?
By "mobile friendly" website, you must mean responsive website. I would suggest using Bootstrap framework for this modern need: https://react-bootstrap.github.io/
You definitely need to learn about the grid system.
You could use your own CSS, but a framework is likely to regroup a whole set of tools you may need in the future.

Free Basics Platform(internet.org) [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 6 years ago.
Improve this question
Free Basics has a policy that you need to disable Javascript code in your website now I have a desktop version website and I want to register it on Free Basics platform should I responsive the same website and disable or hide the Javascript using some Php scripts or css or I have to make a new responsive website with not even a single line of Javascript code?
help will be much appreciated thanks
I was intrigued and looked at their technical guidelines - did you read those?
https://developers.facebook.com/docs/internet-org/platform-technical-guidelines
You have to have a site that is specifically designed to work on a low-end devices which are not capable (among other things) to run javascript. While you may detect javascript capability, other requirements of this platform are not easily detected, such as the requirement for smaller image sizes etc. After all, the target users for this applications might be in the area where 20 y/o computer on 9kbps modem is considered to be a good machine.
So I'd say that to pass their technical evaluation you will have to create a separate site, that is targeting their needs.

What program does apple uses to create modular 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 4 years ago.
Improve this question
When I looked at the new MacBook website from Apple I saw a nice smooth scrolling effect on the wireless page. I started digging in the JavaScript and found an uncompressed JavaScript file and I was blown away. (https://www.apple.com/v/macbook/a/scripts/wireless.built.js)
There were so many comments, and you could almost follow what they were thinking when they created this script. I tried to create a JavaScript file like this on my own, but in less than 5 minutes I figured out that it was almost impossible to keep it nice looking and understandable. So my question is: What program does Apple use to create this kind of JavaScript files? It is not a default code editor, but a program that supports built file. There are some good ones out there, but they all have libraries you have to follow, this one is just plain JavaScript and nothing more.
There's no tool to magically make your code look nice.
Apple has a strict code style guide that requires all developers to show discipline when writing code, or their code will be rejected from entering their repo.
It's nothing special really, just proper developer discipline.

What should I do to run my javascript code on all browsers? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I created a javascript code that rotate the canvas. The script is working fine on my Firefox browser. But when I open it in chrome, it looks too bad to see on it. What should I do to write the browser compatible javascript? My code is about 1000+ lines So How could I Find the functions which not support the browser rendering?
Please If anyone have other suggestion also then please post it.
You can use BrowserSwarm which is a project started by Microsoft aims to test JavaScript project compatiability for major browsers. It's easy to use and one-way to connect GitHub.
But for small project or specific problem, open console and start debugging is prime choice.

Categories

Resources