After making all the client side scripts inside a folder which are needed for my website (in dist folder)
checked with ipfs swarm peers
: shows many results
then adding the files with ipfs add -r dist/
proceeded with ipfs name publish < root hash ie hash of dist >
when in browser gateway.ipfs.io/ipfs/<new_given_hash>
the browser keeps loading and no errors in ipfs daemon running terminal