What would happen if...

what would happen if you encased most of a persons site in .js files?
kind of like a template.
the .js files would have the menu, the basic design, banner add, ect. so just one HTML file would look like this:







Web Site Content but all the 'static' stuff is in the .js files.




would that be OK?
the advantage would be that the site viewer just has to get over the big .js files then the rest of the site just uses those same .js files.
the HTML files themselves would be much smaller.

Comments

  • Yes, that would be fine. I consider that a _VERY_ good method, mainly because changes on the default area page (that one which would be in .js files) may be done just once!

    Let's say you have a menu in every page (and you don't use that method we're talking about), and you want to make a change in that menu... You'll have to change that menu in every .html file!!! That's NUTS!

    So yes, it would be more than OK.

    -- Secret_Doom - Leonardo Pignataro --

    secret_doom@hotmail.com
    www.batch.hpg.com.br


    : what would happen if you encased most of a persons site in .js files?
    : kind of like a template.
    : the .js files would have the menu, the basic design, banner add, ect. so just one HTML file would look like this:
    :
    :
    :
    :
    :
    :
    :
    : Web Site Content but all the 'static' stuff is in the .js files.
    :
    :
    :
    :
    : would that be OK?
    : the advantage would be that the site viewer just has to get over the big .js files then the rest of the site just uses those same .js files.
    : the HTML files themselves would be much smaller.
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion