4 ms·
Client-side conditional loading with HTML comments
ResponsiveComments was designed to bring simple conditional loading to the client side. Although not the complete answer to conditional loading in responsive web design, ResponsiveComments provides a solution to simple conditional loading, directly within your markup.
- fideloper 13y agoIf you're wondering, this makes use of the fact that Javascript treats HTML comments as just another node, giving you the ability to manipulate it. This gives you the ability to hide/show certain content on various breakpoints and other possibilities. Cool!
- chambaz 13y agoExactly! OP here, let me know if you have any questions on this.
- ijy 13y agoSo simple but potentially incredibly useful. I like it! :)