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 have a 'menu' HTML page. The Menu contains Book names and its chapters. It is designed like a tree like structure, built using tags UL & LI. The file is 2.6mb. The file is loading very slow on to the website. Are there any suggestions to improve its load time. Thank you.
One suggestion would be to only load the data that is visible to user and defer the loading of the rest to later time using ajax if that is possible.
Basically you load the top level items, then on click of any menu item you can make an ajax call to load it's children dynamically.
This is a very broad question to ask, without seeing the HTML or a representation there's no good way to answer this.
However, I can give some pointers:
check that compression is enabled for the website, or at least this
page.
simplify the structure check that the page has a good cache
header, so the client doesn't need to download it regularly
consider
using a dynamic page (json/jquery) that only loads the content of the
segment when it's clicked on. (as TeaCode suggests)
You mention C# and HTML5 in your tags, is this file auto-generated by a site?
Related
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 5 days ago.
Improve this question
I'm trying to create a c# program that automates operations on IMDb (looks up a title and then adds it to a user's private list). I'd prefer to use c# because this last part of a program that also does other operations, but if it should be too difficult I might also be forced to use another language (python). As said before I really would like to use c# but I really don't know where to start, from what I understand I should use the "tags" in the html page, but I'm open to suggestions on how to proceed
site: https://www.imdb.com/
I tried to use a Chrome extension to parse the page and find the way to choose the right html button but i don't know how to go about it (i'm just a beginner in c# and i wanted to learn something by doing this little project)
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
I want to understand on a conceptual level how information travels from the Database(Microsoft SQL) to the Frontend with C# & ASP.Net . I have not had much luck finding examples or diagrams which address this concept in a clear way. One example could be sending the string "Hello I am a string stored in the database & now I appear on this front end web page", It does not have to be specific to these languages, although if it is that would be great. Ultimately, I want to understand what are the components involved and how do they communicate information back and forth.Any articles,videos or diagrams that you feel of importance are also highly valued, thank you for your time.
Here's a diagram. I hope it helps.
An overview could be like:
User sends request to web server through client i.e. browser
Web server queries database
Get query results
Generates HTML (if results found)
Send back to the browser
Browser displays on the screen
Every step has details but it is an overview, hope makes some sense.
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
I created a http server using C# and I took the idea from here
It works with html pages. I tried to add aspx mime-type like this "text/aspx"
but it doesn't work, it's still opened like a text file!
Any ideas?
I assume that you have only implemented static resource handling for your web server. However, for ASP(X) (or any other dynamic content) to work as expected, you need a complex pipeline which loads the file, compiles it, runs the code in the right context, and returns the result (and that is a very simplified explanation).
In general, it's no a wise idea to implement your own server stack. You'll very likely end up with a vulnerable and badly performing piece of software. Just use an existing web server (or maybe even just Cassini if you really want to see the internals working).
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 2 years ago.
Improve this question
we are going to develop a media website where we will show current news.
For that we have 2 strategies:
Create window service in C# which will generate static (.html) pages for website (with updated news) as there will be only images and text (no postback or server-side event required) on website and then service will upload affected pages on server.
Create application in ASP.NET (.NET Framework 4.0) and use output caching for few minutes in it (as news updates in every 2-3 minutes).
Please suggest which one from above will be more preferable from performance (or other) point of view in my situation.
Please also suggest if any other strategy may provide me better solution. Thanks.
Making static pages will also prevents user to wait until new page is generated on server,so there is no way,only html can understand either new page or itself is generated again.This will cause user to make an interaction with the page (refresh) to find new results,so the cycle ends.You cannot expect user to know when content is changed.
As long as the content is dynamic in time interval,you should prefer asp.net solution with AJAX requests.You can make this with single page.
DO NOT FORGET that either developing via HTML or aspx or any kind will display your results in HTML output,so unless your page shall use any server content,try asp.net dynamically.
I can also assist code,please verify the specs.
Best Regards
Second one will be nice method
Problem with the first method:
HTML page want to be created each time
Created HTML pages what to be deleted or overwritten each time
Whole page want to be recreated (by using AJAX update can be done faster)
so comparatively second one is the right method.
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 8 years ago.
Improve this question
Do people think there is any need of a good analogue of HTML Tidy for .NET?
I am looking to create a product that will do things like filter HTML syntax for documents, performing various tasks, such as: cleaning up HTML generated by MicroSoft Word, converting HTML to XHTML, stripping out certain elements, etc.
What other possible common functions would be expected from an HTML tidier?
I haven't tried any of these, but there are a couple of links here: http://tidyfornet.sourceforge.net/
Let us know what kind of success you have with any of them. This is a good question to know the answer to.
You can achieve some cleanliness by using the built-in HTML formatting tool in Visual Studio.
http://weblogs.asp.net/scottgu/archive/2006/07/07/Tip_2F00_Trick_3A00_-Custom-formatting-HTML-in-Visual-Web-Developer-and-Visual-Studio-2005.aspx
I had used LINQ to XML with connection to HTMLAgilityPack for importing HTML into a WPF application which in turn reads specific information from a HTML file.
You may use it to perform the corrections in formatting or highlighting the HTML syntax. You can find more information about Html Agility Pack on Codeplex.