-
Notifications
You must be signed in to change notification settings - Fork 2
Optimizing HTML code for Katana
Darth-Ness edited this page Nov 5, 2021
·
2 revisions
(Note: I'm not sure how much faster this will actually make your code run)
For our example we will use the following file
<!DOCTYPE html>
<html>
<head>
<title>Test Page</title>
</head>
<body>
<h1>Hello There!</h1>
</body>
</html>
HTML tags should have a result. the tags <DOCTYPE html>, <html>, <head>, and <body>
do not do anything. So remove them. After this step our test file will look like this (Note: These do perform a action in other rendering engines).
<title>Test Page</tittle>
<h1>Hello There!</h1>
Due to the way Katana parses, closing tags do not serve a purpose (Warning: Following this step will break the way your webpage will render in other engines. So you may want to skip this step)
After completing this step our test file will look like this.
<title>Test Page
<h1>Hello There!