84

My Boss: Let's do single page web but we wont use any framework.

And yes, how fuck I ended up myself with almost half 10k of lines.

Comments
  • 63
    just curious: why are you writing half 10k instead of 5k
  • 17
    @moars42 makes it seem bigger lol
  • 3
    Been there - done that
    Google didn't like and indexed shit
  • 2
    It probably would've been the same length or even longer if you included all the code from any framework.
  • 1
    That doesn't count delete the white spaces
  • 3
    Hope the website's not designed to make any money, Good luck trying to SEO that shit!
  • 3
    Get your CSS and JS out of your HTML fool!!
  • 12
    I think you're missing the point of an SPA, it doesn't literally mean a single page of code in your project...
  • 3
    For one thing you put two returns after each tag
  • 0
    Ever do a view source on Google.com?
  • 0
    @sylflo i think he hasn't skills for PHP
  • 0
    @Kimmax just curious. why wouldn't google index a 5000 line page? I mean most of it is probably text. I think it is not uncommon to have that much text on a website.
  • 8
    You do know single page sites, don't have to be single page code, right 😂
  • 1
    @godot thats what I thought too, the problem is that there properly is a good amount of display: none; etc involved and google doesn't like that in excess amounts. I tried structuring it better using HTML5 page, sections tags etc. but that didn't really help, so I ended up converting to a different approach,which is also way cleaner to write and maintain
Add Comment