Remove unused css and javascript from a page [closed] - javascript

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
We have a web application which is written in jsp, struts, with lots of css, javascript, jquery. Its a very old application so there are lots of js and css which is written. Since its a very old application there are lots of code written. Now we are in the process of cleaning up the application. Is there is any tool to identify unused js or css?
Thanks

Use this below site to detect the unused css
http://unused-css.com/
Firefox addon- its shows inside a firebug
https://addons.mozilla.org/en-US/firefox/addon/10704/

maybe the flows are usefull。
firefox https://addons.mozilla.org/en-US/firefox/addon/dust-me-selectors/
chrome https://developers.google.com/chrome-developer-tools/

Related

Which chart library does this website use? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I am wondering which chart library this website uses: https://digitalik.net/btc/
Is it a specific JS library, or just some HTML 5 stuff? Also, I'd be interested to learn how you found it out?
Judging from the source code, the charts seem to be in some div containers, but I didn't fully understand the source code.
Thanks in advance!
You want to look at the HTML source code. There might be a link to a .js library. In your case there is, namely, <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>. Plotly?

How to clean css and js in html [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I have created my website from html template via visual code studio. Now website speed is very low, because there are so much unused css and js remaining from template. How can I clean these? What is the easiest and most practical method?
You should minify your css and js files.
you have to compress all your images which are very high in size.
After doing these things your site speed will get improved.
there are so many online tools which easily minify your css, js files.

How To See If I'm Using JS Dependencies on my WebSite [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
To build a website I got a predesigned template from WrapBootstrap. After I added it to my project, I deleted some HTML unused parts. For visual effect (e.g. fade effect and others) the template uses a lot of Javascript files as dependencies. I'm sure some of them are actually unused.
There's a automated way to check if I'm still using some of them? I will keep them and remove the unused.
This for performance purposes.

Is there a JavaScript component for embedding HTML docs in a web page? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Looking for something like Viewer.js but for loading a separate HTML document.
So I want something that has pagination concepts, and this doesn't have javascript in it, just CSS and HTML. It's not cross domain, it's fed back from a Web API.
Not sure why there's downvotes.
Why don't you use iframe?. It should do exactly what you need - load a separate HTML into your web page.
You cannot create something like Viewer.js because you can have problems with loaded JS and CSS, that is why iframe is a safety option (and probably the only one)

Good JavaScript-based tidying for HTML, CSS and JS? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Can anyone recommend a JavaScript-based code reformatter for HTML, CSS and JS?
I'm making a web-based IDE and I'd like to be able to tidy up some code without having to refresh the page or wait for an ajax request.
Note: I need it to be able to accept and return a string, and not work directly with HTML elements. My IDE doesn't use a textarea.
Here's a few
html beautifier jquery plugin
js-beautify
cssbeautify
[EDIT]: also found this script, it's what the html beautifier is based on.
HTML tidy is by far the best solution. Classic binary has been ported to javascript: How to format/tidy/beautify in JavaScript

Categories