R
R
raforpost2020-12-23 06:51:19
Search Engine Optimization
raforpost, 2020-12-23 06:51:19

Is it possible to make a store catalog as a single html file?

the store catalog is simple - one small tree of products, 50 pieces of products and all of the same theme,

what if all this is on one page and javascript animates all this tree and enable-disable sections for display

how can I make a store catalog without reloading the page?

Do I understand correctly that each product should have its own separate page?
so that the buyer can copy its url to himself, is it

normal to do this -
there are separate pages for each product - and the user can copy the url of the product page
and there is html (without meta tag titles, etc.) of these pages stored in separate files
, this html data is loaded into the main page

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xmoonlight, 2020-12-23
@xmoonlight

As the simplest and fastest option: includeHTML .
Add to write to history and change content:

let state = {};
let title = 'new page title';
let url = 'urlToNewPageHTML.html';
history.pushState(state, title, url);
document.body.innerHTML = newPageHTML;

D
Danny Arty, 2020-12-23
@DanArst

Make an ajax product filter and ajax content upload

P
Puma Thailand, 2020-12-23
@opium

maybe
in the question I didn’t see what your problem is in the implementation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question